瀏覽代碼

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

Kartik Visweswaran 10 年之前
父節點
當前提交
6945a25ce9
共有 3 個文件被更改,包括 2 次插入1 次删除
  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() {

文件差異過大導致無法顯示
+ 0 - 0
js/fileinput.min.js


部分文件因文件數量過多而無法顯示