mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 00:48:41 +00:00
pass the requestOptions to the success and failure callbacks
This commit is contained in:
parent
c267c36b7b
commit
370b4ae805
1 changed files with 4 additions and 4 deletions
|
@ -106,16 +106,16 @@ Ext.namespace('Ext.ux.util');
|
||||||
if (responseObj.error) {
|
if (responseObj.error) {
|
||||||
if (Ext.type(options.failure) != 'function') return;
|
if (Ext.type(options.failure) != 'function') return;
|
||||||
if (options.scope) {
|
if (options.scope) {
|
||||||
options.failure.call(options.scope, responseObj.error, responseObj, response);
|
options.failure.call(options.scope, responseObj.error, responseObj, response, requestOptions);
|
||||||
} else {
|
} else {
|
||||||
options.failure(responseObj.error, responseObj, response);
|
options.failure(responseObj.error, responseObj, response, requestOptions);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (Ext.type(options.success) != 'function') return;
|
if (Ext.type(options.success) != 'function') return;
|
||||||
if (options.scope) {
|
if (options.scope) {
|
||||||
options.success.call(options.scope, responseObj.result, responseObj, response);
|
options.success.call(options.scope, responseObj.result, responseObj, response, requestOptions);
|
||||||
} else {
|
} else {
|
||||||
options.success(responseObj.result, responseObj, response);
|
options.success(responseObj.result, responseObj, response, requestOptions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue