diff --git a/deluge/plugins/execute/execute/data/execute.js b/deluge/plugins/execute/execute/data/execute.js index 33612c238..d9ed68180 100644 --- a/deluge/plugins/execute/execute/data/execute.js +++ b/deluge/plugins/execute/execute/data/execute.js @@ -210,7 +210,7 @@ Deluge.ux.preferences.ExecutePage = Ext.extend(Ext.Panel, { } }); - deluge.preferences.on('show', this.onPreferencesShow, this); + this.on('show', this.onPreferencesShow, this); }, updateCommands: function() { diff --git a/deluge/plugins/extractor/extractor/data/extractor.js b/deluge/plugins/extractor/extractor/data/extractor.js index 4b29c5b9d..00712e52a 100644 --- a/deluge/plugins/extractor/extractor/data/extractor.js +++ b/deluge/plugins/extractor/extractor/data/extractor.js @@ -57,7 +57,7 @@ Deluge.ux.preferences.ExtractorPage = Ext.extend(Ext.Panel, { boxLabel: _('Create torrent name sub-folder') }); - deluge.preferences.on('show', this.updateConfig, this); + this.on('show', this.updateConfig, this); }, onApply: function() { diff --git a/deluge/plugins/scheduler/scheduler/data/scheduler.js b/deluge/plugins/scheduler/scheduler/data/scheduler.js index 2b3f9001e..13e549c69 100644 --- a/deluge/plugins/scheduler/scheduler/data/scheduler.js +++ b/deluge/plugins/scheduler/scheduler/data/scheduler.js @@ -565,7 +565,7 @@ Deluge.ux.preferences.SchedulerPage = Ext.extend(Ext.Panel, { decimalPrecision: 0 }); - deluge.preferences.on('show', this.updateConfig, this); + this.on('show', this.updateConfig, this); }, onRender: function(ct, position) { @@ -593,11 +593,6 @@ Deluge.ux.preferences.SchedulerPage = Ext.extend(Ext.Panel, { this.onApply(); }, - afterRender: function() { - Deluge.ux.preferences.SchedulerPage.superclass.afterRender.call(this); - this.updateConfig(); - }, - updateConfig: function() { deluge.client.scheduler.get_config({ success: function(config) {