From e8288eec6aaeaf2ea2ef5e385ef7e33e425a1e44 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 4 Aug 2014 21:42:48 +0100 Subject: [PATCH] [WebUI] Update from config upon showing plugin page --- .../plugins/Execute/deluge/plugins/execute/data/execute.js | 2 +- .../Extractor/deluge/plugins/extractor/data/extractor.js | 2 +- .../Scheduler/deluge/plugins/scheduler/data/scheduler.js | 7 +------ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/deluge/plugins/Execute/deluge/plugins/execute/data/execute.js b/deluge/plugins/Execute/deluge/plugins/execute/data/execute.js index 4e8a0c401..0d4fb1c2e 100644 --- a/deluge/plugins/Execute/deluge/plugins/execute/data/execute.js +++ b/deluge/plugins/Execute/deluge/plugins/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/deluge/plugins/extractor/data/extractor.js b/deluge/plugins/Extractor/deluge/plugins/extractor/data/extractor.js index 4b29c5b9d..00712e52a 100644 --- a/deluge/plugins/Extractor/deluge/plugins/extractor/data/extractor.js +++ b/deluge/plugins/Extractor/deluge/plugins/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/deluge/plugins/scheduler/data/scheduler.js b/deluge/plugins/Scheduler/deluge/plugins/scheduler/data/scheduler.js index 2b3f9001e..13e549c69 100644 --- a/deluge/plugins/Scheduler/deluge/plugins/scheduler/data/scheduler.js +++ b/deluge/plugins/Scheduler/deluge/plugins/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) {