Changeset 370b4a


Ignore:
Timestamp:
04/27/2009 05:21:35 PM (16 years ago)
Author:
Damien Churchill <damoc@gmail.com>
Branches:
2.0.x, develop, extjs4-port, master
Children:
d856f85
Parents:
c267c3
Message:

pass the requestOptions to the success and failure callbacks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • deluge/ui/web/js/Deluge.Client.js

    rc267c3 r370b4a  
    107107                if (Ext.type(options.failure) != 'function') return;
    108108                if (options.scope) {
    109                     options.failure.call(options.scope, responseObj.error, responseObj, response);
     109                    options.failure.call(options.scope, responseObj.error, responseObj, response, requestOptions);
    110110                } else {
    111                     options.failure(responseObj.error, responseObj, response);
     111                    options.failure(responseObj.error, responseObj, response, requestOptions);
    112112                }
    113113            } else {
    114114                if (Ext.type(options.success) != 'function') return;
    115115                if (options.scope) {
    116                     options.success.call(options.scope, responseObj.result, responseObj, response);
     116                    options.success.call(options.scope, responseObj.result, responseObj, response, requestOptions);
    117117                } else {
    118                     options.success(responseObj.result, responseObj, response);
     118                    options.success(responseObj.result, responseObj, response, requestOptions);
    119119                }
    120120            }
Note: See TracChangeset for help on using the changeset viewer.