Selaa lähdekoodia

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

Kartik Visweswaran 9 vuotta sitten
vanhempi
commit
53a8b19561
3 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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%"},

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
js/fileinput.min.js


Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä