Parcourir la source

fix: _toggleLoading when only click

Hugh Harlequin il y a 1 an
Parent
commit
e052f5b7db
4 fichiers modifiés avec 8 ajouts et 2 suppressions
  1. 4 1
      dist/js/fileinput.js
  2. 0 0
      dist/js/fileinput.min.js
  3. 0 0
      dist/js/fileinput.min.js.map
  4. 4 1
      js/fileinput.js

+ 4 - 1
dist/js/fileinput.js

@@ -1066,7 +1066,10 @@
             }
             $el[0].closest('.input-group').addEventListener('click', function (e) {
                 $el.click();
-            })
+            });
+            $el.on('click', function () {
+                self._toggleLoading('show');
+            });
         },
         _initFileManager: function () {
             var self = this;

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/js/fileinput.min.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/js/fileinput.min.js.map


+ 4 - 1
js/fileinput.js

@@ -1066,7 +1066,10 @@
             }
             $el[0].closest('.input-group').addEventListener('click', function (e) {
                 $el.click();
-            })
+            });
+            $el.on('click', function () {
+                self._toggleLoading('show');
+            });
         },
         _initFileManager: function () {
             var self = this;

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff