From 619092aee0eda4cc3c2b8ca002948f3ff0046b04 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 3 May 2010 02:01:21 +0100 Subject: [PATCH] fix plugin info displaying upon select --- deluge/ui/web/js/deluge-all/preferences/PluginsPage.js | 8 ++++++-- 1 file 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 fa44c5885..452da3809 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