|
@@ -3533,7 +3533,11 @@
|
|
if (fm.errors.indexOf(id) !== -1) {
|
|
if (fm.errors.indexOf(id) !== -1) {
|
|
delete fm.errors[id];
|
|
delete fm.errors[id];
|
|
}
|
|
}
|
|
- self._raise('filepreupload', [outData, previewId, i, $thumb.attr('data-fileid')]);
|
|
|
|
|
|
+ if (self.showPreview) {
|
|
|
|
+ self._raise('filepreupload', [outData, previewId, i, $thumb.attr('data-fileid')]);
|
|
|
|
+ } else {
|
|
|
|
+ self._raise('filepreupload', [outData, previewId, i]);
|
|
|
|
+ }
|
|
$.extend(true, params, outData);
|
|
$.extend(true, params, outData);
|
|
if (self._abort(params)) {
|
|
if (self._abort(params)) {
|
|
jqXHR.abort();
|
|
jqXHR.abort();
|
|
@@ -6048,4 +6052,4 @@
|
|
$input.fileinput();
|
|
$input.fileinput();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
-}));
|
|
|
|
|
|
+}));
|