Преглед на файлове

Fix #719: Pass right `previewId` to `fileuploaded` event

Kartik Visweswaran преди 8 години
родител
ревизия
d9b92b6820
променени са 3 файла, в които са добавени 7 реда и са изтрити 7 реда
  1. 6 5
      CHANGE.md
  2. 1 1
      js/fileinput.js
  3. 0 1
      js/fileinput.min.js

+ 6 - 5
CHANGE.md

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

+ 1 - 1
js/fileinput.js

@@ -1788,7 +1788,7 @@
                             $btnUpload.hide();
                             $btnUpload.hide();
                             self._initUploadSuccess(data, $thumb, allFiles);
                             self._initUploadSuccess(data, $thumb, allFiles);
                         }
                         }
-                        self._raise('fileuploaded', [outData, previewId, i]);
+                        self._raise('fileuploaded', [outData, $thumb.attr('id'), i]);
                         if (!allFiles) {
                         if (!allFiles) {
                             self.updateStack(i, undefined);
                             self.updateStack(i, undefined);
                         } else {
                         } else {

Файловите разлики са ограничени, защото са твърде много
+ 0 - 1
js/fileinput.min.js


Някои файлове не бяха показани, защото твърде много файлове са промени