fix plugin info displaying upon select
This commit is contained in:
parent
89fb5b02d7
commit
619092aee0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue