소스 검색

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


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.