소스 검색

Fix #230: More correct initial preview delete reset

Kartik Visweswaran 10 년 전
부모
커밋
a493a208a0
3개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      CHANGE.md
  2. 1 1
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 1 - 0
CHANGE.md

@@ -56,6 +56,7 @@ version 4.1.8
 33. (enh #227): Created Ukranian translations and updated Russian translations.
 34. (enh #228): Created Thai translations.
 35. (enh #229): Created French translations.
+36. (enh #230): More correct initial preview delete reset.
 
 version 4.1.7
 =============

+ 1 - 1
js/fileinput.js

@@ -949,7 +949,7 @@
                             self.clearObjects($frame);
                             $frame.remove();
                             resetProgress();
-                            if (!previewCache.count(self.id)) {
+                            if (!previewCache.count(self.id) && self.getFileStack().length === 0) {
                                 self.reset();
                             }
                         });

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
js/fileinput.min.js


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