Browse Source

Fix #870: Correct config.width parsing

Kartik Visweswaran 8 năm trước cách đây
mục cha
commit
c1d1e01f0a
3 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 6 0
      CHANGE.md
  2. 1 1
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 6 - 0
CHANGE.md

@@ -1,6 +1,12 @@
 Change Log: `bootstrap-fileinput`
 =================================
 
+## version 4.3.8
+
+**Date:** 13-Feb-2017
+
+1. (bug #870): Correct config.width parsing.
+
 ## version 4.3.7
 
 **Date:** 11-Feb-2017

+ 1 - 1
js/fileinput.js

@@ -2195,7 +2195,7 @@
             var self = this, caption = self.slug(fname), prevContent, zoomContent = '',
                 config = self.previewSettings[cat], w = config && config.width ? config.width : '',
                 h = config && config.height ? config.height : '',
-                footer = foot || self._renderFileFooter(caption, size, config.width, isError),
+                footer = foot || self._renderFileFooter(caption, size, ($h.isEmpty(w) ? 'auto' : w), isError),
                 hasIconSetting = self._getPreviewIcon(fname),
                 forcePrevIcon = hasIconSetting && self.preferIconicPreview,
                 forceZoomIcon = hasIconSetting && self.preferIconicZoomPreview,

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
js/fileinput.min.js


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác