Explorar el Código

Fix #1390: Correct remove button display validation set via `fileActionSettings`

Kartik Visweswaran hace 6 años
padre
commit
226d7e0b95
Se han modificado 3 ficheros con 3 adiciones y 2 borrados
  1. 1 0
      CHANGE.md
  2. 2 2
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 1 - 0
CHANGE.md

@@ -5,6 +5,7 @@ Change Log: `bootstrap-fileinput`
 
 **Date:** _under development_
 
+- (bug #1390): Correct remove button display validation set via `fileActionSettings`.
 - (bug #1385): Correct resize image error.
 - (bug #1383): Validate for undefined zoom data.
     

+ 2 - 2
js/fileinput.js

@@ -4443,7 +4443,7 @@
                 showDwn = showDwn(cfg);
             }
             if (typeof showDel === 'function') {
-                showDwn = showDwn(cfg);
+                showDel = showDel(cfg);
             }
             if (typeof showZoom === 'function') {
                 showZoom = showZoom(cfg);
@@ -4451,7 +4451,7 @@
             if (typeof showDrag === 'function') {
                 showDrag = showDrag(cfg);
             }
-            if (!showUpl && !showDwn && !showDwn && !showZoom && !showDrag) {
+            if (!showUpl && !showDwn && !showDel && !showZoom && !showDrag) {
                 return '';
             }
             var self = this, vUrl = url === false ? '' : ' data-url="' + url + '"',

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
js/fileinput.min.js


Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio