Ticket #1377: PluginsPage.js.diff

File PluginsPage.js.diff, 714 bytes (added by samuel337, 14 years ago)
  • deluge/ui/web/js/deluge-all/preferences/PluginsPage.js

    diff --git a/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js b/deluge/ui/web/js/deluge-all/preferences/PluginsPage.js
    index a9b4d7d..d963d1f 100644
    a b Deluge.preferences.Plugins = Ext.extend(Ext.Panel, {  
    232232        },
    233233
    234234        onPluginEnabled: function(pluginName) {
    235                 var index = this.grid.getStore().find('plugin', pluginName);
     235                var index = this.list.getStore().find('plugin', pluginName);
    236236                if (index == -1) return;
    237                 var plugin = this.grid.getStore().getAt(index);
     237                var plugin = this.list.getStore().getAt(index);
    238238                plugin.set('enabled', true);
    239239                plugin.commit();
    240240        },