Author: damoxc
Revision: 5649
Log:
improve the connection manager
Diff:
Modified: trunk/deluge/ui/web/js/Deluge.ConnectionManager.js
===================================================================
--- trunk/deluge/ui/web/js/Deluge.ConnectionManager.js 2009-08-11 23:39:58 UTC
(rev 5648)
+++ trunk/deluge/ui/web/js/Deluge.ConnectionManager.js 2009-08-11 23:43:56 UTC
(rev 5649)
@@ -302,12 +302,8 @@
},
onGetHosts: function(hosts) {
- var store = this.grid.getStore();
+ this.grid.getStore().loadData(hosts);
Ext.each(hosts, function(host) {
- var record = store.getById(host[0]);
- if (!record) {
- store.loadData([host], true);
- }
Deluge.Client.web.get_host_status(host[0], {
success: this.onGetHostStatus,
scope: this
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---