|
@@ -957,9 +957,9 @@
|
|
return xhrobj;
|
|
return xhrobj;
|
|
},
|
|
},
|
|
ajaxSubmit: function (fnBefore, fnSuccess, fnComplete, fnError) {
|
|
ajaxSubmit: function (fnBefore, fnSuccess, fnComplete, fnError) {
|
|
- var self = this;
|
|
|
|
|
|
+ var self = this, settings;
|
|
self.uploadExtra();
|
|
self.uploadExtra();
|
|
- self.ajaxRequests.push($.ajax({
|
|
|
|
|
|
+ settings = $.extend(self.ajaxSettings, {
|
|
xhr: function () {
|
|
xhr: function () {
|
|
var xhrobj = $.ajaxSettings.xhr();
|
|
var xhrobj = $.ajaxSettings.xhr();
|
|
return self.initXhr(xhrobj, 98);
|
|
return self.initXhr(xhrobj, 98);
|
|
@@ -975,7 +975,8 @@
|
|
success: fnSuccess,
|
|
success: fnSuccess,
|
|
complete: fnComplete,
|
|
complete: fnComplete,
|
|
error: fnError
|
|
error: fnError
|
|
- }));
|
|
|
|
|
|
+ });
|
|
|
|
+ self.ajaxRequests.push($.ajax(settings));
|
|
},
|
|
},
|
|
uploadSingle: function (i, files, allFiles) {
|
|
uploadSingle: function (i, files, allFiles) {
|
|
var self = this, total = self.getFileStack().length, formdata = new FormData(), outData,
|
|
var self = this, total = self.getFileStack().length, formdata = new FormData(), outData,
|
|
@@ -1757,7 +1758,8 @@
|
|
dropZoneTitleClass: 'file-drop-zone-title',
|
|
dropZoneTitleClass: 'file-drop-zone-title',
|
|
fileActionSettings: {},
|
|
fileActionSettings: {},
|
|
otherActionButtons: '',
|
|
otherActionButtons: '',
|
|
- textEncoding: 'UTF-8'
|
|
|
|
|
|
+ textEncoding: 'UTF-8',
|
|
|
|
+ ajaxSettings: {}
|
|
};
|
|
};
|
|
|
|
|
|
$.fn.fileinput.Constructor = FileInput;
|
|
$.fn.fileinput.Constructor = FileInput;
|