We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88b8fe5 commit 8434a5fCopy full SHA for 8434a5f
src/jquery.form.js
@@ -243,10 +243,13 @@
243
if (!options.dataType && options.target) {
244
var oldSuccess = options.success || function(){};
245
246
- callbacks.push(function(data) {
247
- var fn = options.replaceTarget ? 'replaceWith' : 'html';
+ callbacks.push(function(data, textStatus, jqXHR) {
+ var successArguments = arguments,
248
+ fn = options.replaceTarget ? 'replaceWith' : 'html';
249
- $(options.target)[fn](data).each(oldSuccess, arguments);
250
+ $(options.target)[fn](data).each(function(){
251
+ oldSuccess.apply(this, successArguments);
252
+ });
253
});
254
255
} else if (options.success) {
0 commit comments