浏览代码

Fix #719: Pass right `previewId` to `fileuploaded` event

Kartik Visweswaran 8 年之前
父节点
当前提交
d9b92b6820
共有 3 个文件被更改,包括 7 次插入7 次删除
  1. 6 5
      CHANGE.md
  2. 1 1
      js/fileinput.js
  3. 0 1
      js/fileinput.min.js

+ 6 - 5
CHANGE.md

@@ -8,11 +8,12 @@ Change Log: `bootstrap-fileinput`
 1. (bug #710): Fix bug for `ifSet` validation.
 2. Add contribution templates.
 3. (enh #718): Update Japanese Translations.
-4. (enh #721): Update Turkish Translations.
-5. (bug #722): Correctly concat ajax output in initial preview.
-6. (enh #728): Change sortable plugin name to avoid conflict with JUI Sortable.
-7. (enh #729): Implement `progressUploadThreshold` to show processing when waiting for server response.
-8. (enh #730): Correct Romanian Translations.
+4. (enh #719): Pass right `previewId` to `fileuploaded` event.
+5. (enh #721): Update Turkish Translations.
+6. (bug #722): Correctly concat ajax output in initial preview.
+7. (enh #728): Change sortable plugin name to avoid conflict with JUI Sortable.
+8. (enh #729): Implement `progressUploadThreshold` to show processing when waiting for server response.
+9. (enh #730): Correct Romanian Translations.
 
 ## version 4.3.3
 

+ 1 - 1
js/fileinput.js

@@ -1788,7 +1788,7 @@
                             $btnUpload.hide();
                             self._initUploadSuccess(data, $thumb, allFiles);
                         }
-                        self._raise('fileuploaded', [outData, previewId, i]);
+                        self._raise('fileuploaded', [outData, $thumb.attr('id'), i]);
                         if (!allFiles) {
                             self.updateStack(i, undefined);
                         } else {

文件差异内容过多而无法显示
+ 0 - 1
js/fileinput.min.js


部分文件因为文件数量过多而无法显示