Module: deluge Branch: master Commit: 619092aee0eda4cc3c2b8ca002948f3ff0046b04
Author: Damien Churchill <[email protected]> Date: Mon May 3 02:01:21 2010 +0100 fix plugin info displaying upon select --- .../web/js/deluge-all/preferences/PluginsPage.js | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js b/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js index fa44c58..452da38 100644 --- a/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js +++ b/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js @@ -95,7 +95,10 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, { dataIndex: 'plugin' }], singleSelect: true, - autoExpandColumn: 'plugin' + autoExpandColumn: 'plugin', + listeners: { + selectionchange: {fn: this.onPluginSelect, scope: this} + } }); this.panel = this.add({ @@ -248,7 +251,8 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, { this.updatePlugins(); }, - onPluginSelect: function(selmodel, rowIndex, r) { + onPluginSelect: function(dv, selections) { + var r = dv.getRecords(selections)[0]; deluge.client.web.get_plugin_info(r.get('plugin'), { success: this.onGotPluginInfo, 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.
