소스 검색

Fix #676: Ability to configure browse button display and file select via zone click

Kartik Visweswaran 9 년 전
부모
커밋
53a8b19561
3개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      CHANGE.md
  2. 1 1
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 1 - 1
CHANGE.md

@@ -74,7 +74,7 @@ Change Log: `bootstrap-fileinput`
     - New boolean property `showBrowse` that allows you to control the display of the browse button
     - New boolean property `browseOnZoneClick` that allows you to select a file:
          - **for ajax uploads** - by clicking on the preview drag/drop zone 
-         - **for form based/non-ajax uploads** - by setting `initialPreviewContent` and that will be clickable to browse files
+         - **for form based/non-ajax uploads** - by setting `defaultPreviewContent` and that will be clickable to browse files
     - New string message property `dropZoneClickTitle` that will be appended to the `dragZoneTitle` for ajax uploads when `browseOnZoneClick` is `true`.
 
 

+ 1 - 1
js/fileinput.js

@@ -457,7 +457,7 @@
         other: {width: "160px", height: "160px"}
     };
     defaultPreviewZoomSettings = {
-        image: {width: "auto", height: "100%"},
+        image: {width: "100%", height: "100%"},
         html: {width: "100%", height: "100%", 'min-height': "480px"},
         text: {width: "100%", height: "100%", 'min-height': "480px"},
         video: {width: "auto", height: "100%", 'max-width': "100%"},

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
js/fileinput.min.js


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.