fix plugin info displaying upon select

This commit is contained in:
Damien Churchill 2010-05-03 02:01:21 +01:00
parent 89fb5b02d7
commit 619092aee0
1 changed files with 6 additions and 2 deletions

View File

@ -95,7 +95,10 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, {
dataIndex: 'plugin' dataIndex: 'plugin'
}], }],
singleSelect: true, singleSelect: true,
autoExpandColumn: 'plugin' autoExpandColumn: 'plugin',
listeners: {
selectionchange: {fn: this.onPluginSelect, scope: this}
}
}); });
this.panel = this.add({ this.panel = this.add({
@ -248,7 +251,8 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, {
this.updatePlugins(); 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'), { deluge.client.web.get_plugin_info(r.get('plugin'), {
success: this.onGotPluginInfo, success: this.onGotPluginInfo,
scope: this scope: this