Author: damoxc
Revision: 5643
Log:
add an error event to the rpc client
Diff:
Modified: trunk/deluge/ui/web/js/Deluge.Client.js
===================================================================
--- trunk/deluge/ui/web/js/Deluge.Client.js 2009-08-11 22:51:37 UTC (rev
5642)
+++ trunk/deluge/ui/web/js/Deluge.Client.js 2009-08-11 22:53:53 UTC (rev
5643)
@@ -58,7 +58,9 @@
* Fires when the client has retrieved the list of methods
from the server.
* @param {Ext.ux.util.RpcClient} this
*/
- 'connected'
+ 'connected',
+
+ 'error'
);
this.reloadMethods();
},
@@ -109,6 +111,7 @@
} else {
options.failure(errorObj, response, requestOptions);
}
+ this.fireEvent('error', responseObj, response, requestOptions)
},
_onSuccess: function(response, requestOptions) {
@@ -121,6 +124,7 @@
} else {
options.failure(responseObj, response, requestOptions);
}
+ this.fireEvent('error', responseObj, response, requestOptions)
} else {
if (Ext.type(options.success) != 'function') return;
if (options.scope) {
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---