diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2014-08-04 21:42:48 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2014-08-04 21:59:47 +0100 |
commit | 4bd4c7896934b651b551fe42bca54a622a27e6ba (patch) | |
tree | fc4a68083936f3d1efa3952f3bbe6032e281f9b4 | |
parent | 1990bdcb52aad6d7139bf6b3098c255a1764836c (diff) | |
download | deluge-4bd4c7896934b651b551fe42bca54a622a27e6ba.tar.gz deluge-4bd4c7896934b651b551fe42bca54a622a27e6ba.tar.bz2 deluge-4bd4c7896934b651b551fe42bca54a622a27e6ba.zip |
[WebUI] Update from config upon showing plugin page
-rw-r--r-- | deluge/plugins/execute/execute/data/execute.js | 2 | ||||
-rw-r--r-- | deluge/plugins/extractor/extractor/data/extractor.js | 2 | ||||
-rw-r--r-- | deluge/plugins/scheduler/scheduler/data/scheduler.js | 7 |
3 files changed, 3 insertions, 8 deletions
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) { |