瀏覽代碼

Fix #715: Reset caption correctly on clear

Kartik Visweswaran 8 年之前
父節點
當前提交
d2a3a3d5dd
共有 3 個文件被更改,包括 9 次插入8 次删除
  1. 8 7
      CHANGE.md
  2. 1 1
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 8 - 7
CHANGE.md

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

+ 1 - 1
js/fileinput.js

@@ -2947,7 +2947,7 @@
                 }
                 self.$preview.html('');
                 cap = (!self.overwriteInitial && self.initialCaption.length > 0) ? self.initialCaption : '';
-                self._setCaption(cap);
+                self.$caption.html(cap);
                 self.$caption.attr('title', '');
                 addCss(self.$container, 'file-input-new');
                 self._validateDefaultPreview();

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


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