Browse Source

Fix #95: Correct event off for drag & drop in plugin refresh method

Kartik Visweswaran 10 years ago
parent
commit
6945a25ce9
3 changed files with 2 additions and 1 deletions
  1. 1 0
      CHANGE.md
  2. 1 1
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 1 - 0
CHANGE.md

@@ -9,6 +9,7 @@ version 4.1.4
 5. (enh #92): Realign event triggering timing for batch uploads to ensure outData is available.
 5. (enh #92): Realign event triggering timing for batch uploads to ensure outData is available.
 6. (enh #93): Better styling of file upload icon indicators in thumbnails.
 6. (enh #93): Better styling of file upload icon indicators in thumbnails.
 7. Code cleanup with reusable methods for event raising and outData generation.
 7. Code cleanup with reusable methods for event raising and outData generation.
+8. (bug #95): Correct event off for drag & drop in plugin refresh method.
 
 
 version 4.1.3
 version 4.1.3
 =============
 =============

+ 1 - 1
js/fileinput.js

@@ -438,7 +438,7 @@
             var $zone = self.$container.find('.file-drop-zone');
             var $zone = self.$container.find('.file-drop-zone');
             $el.on('change', $.proxy(self.change, self));
             $el.on('change', $.proxy(self.change, self));
             $zone.off('dragenter dragover drop');
             $zone.off('dragenter dragover drop');
-            self.$(document).off('dragenter dragover drop');
+            $(document).off('dragenter dragover drop');
             self.setFileDropZoneTitle();
             self.setFileDropZoneTitle();
         },
         },
         initDragDrop: function() {
         initDragDrop: function() {

File diff suppressed because it is too large
+ 0 - 0
js/fileinput.min.js


Some files were not shown because too many files changed in this diff