Skip to content

Commit 1b00487

Browse files
authored
Merge pull request #9 from vgunduzalp/patch-1
added new features for before send method
2 parents 96740ad + a15d39b commit 1b00487

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FormHelper/Scripts/formhelper.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@
7878
data: formData,
7979
contentType: contentType,
8080
processData: false,
81-
beforeSend: function (arr) {
81+
beforeSend: function (jqXHR,settings) {
8282
if (options.beforeSubmit) {
83-
return window[options.beforeSubmit](arr, $form);
83+
return window[options.beforeSubmit](jqXHR, settings, $form);
8484
}
8585
},
8686
success: function (result, status) {
@@ -194,4 +194,4 @@
194194

195195
};
196196

197-
})(jQuery);
197+
})(jQuery);

0 commit comments

Comments
 (0)