Skip to content

Commit 00bf221

Browse files
committed
Fix #273: Reset caption correctly after all initial preview is deleted
1 parent 5fb5a3f commit 00bf221

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

CHANGE.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version 4.1.9
22
=============
3-
**Date**: 30-Apr-2015
3+
**Date**: 02-May-2015
44

55
1. (enh #232): Update docs to reflect updated bootstrap CDN domain.
66
2. (enh #237): Better styling of file caption icon.
@@ -21,9 +21,10 @@ version 4.1.9
2121
17. (enh #259): Add Polish translations.
2222
18. (enh #263): Enhance parsing of file preview thumbnails and actions.
2323
19. (enh #264): Validate input type of file before initializing plugin.
24-
20. (enh #269): Add Turkish translations.
24+
20. (enh #269, #272): Add Turkish translations.
2525
21. (enh #270): Add Portugese translations.
2626
22. (enh #271): Add Dutch translations.
27+
23. (bug #273): Reset caption correctly after all initial preview is deleted.
2728

2829
version 4.1.8
2930
=============

js/fileinput.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1929,12 +1929,11 @@
19291929
});
19301930
},
19311931
initCaption: function () {
1932-
var self = this, cap;
1933-
if (self.overwriteInitial) {
1932+
var self = this, cap = self.initialCaption || '';
1933+
if (self.overwriteInitial || isEmpty(cap)) {
19341934
self.$caption.html('');
19351935
return false;
19361936
}
1937-
cap = self.initialCaption || '';
19381937
self.setCaption(cap);
19391938
return true;
19401939
},

0 commit comments

Comments
 (0)