summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/scripts/views/settings/settingsView.js
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-11 17:34:06 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-11 17:34:06 +0200
commit51327f01e22deaf460920abcb124b98c6d73732c (patch)
tree64e6e752c952f7c0afaf5c9c7ee0fc203665c42f /pyload/web/app/scripts/views/settings/settingsView.js
parentseveral ui fixes (diff)
downloadpyload-51327f01e22deaf460920abcb124b98c6d73732c.tar.xz
fixed settings
Diffstat (limited to 'pyload/web/app/scripts/views/settings/settingsView.js')
-rw-r--r--pyload/web/app/scripts/views/settings/settingsView.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/web/app/scripts/views/settings/settingsView.js b/pyload/web/app/scripts/views/settings/settingsView.js
index cad5ab075..ff86efdf9 100644
--- a/pyload/web/app/scripts/views/settings/settingsView.js
+++ b/pyload/web/app/scripts/views/settings/settingsView.js
@@ -11,7 +11,6 @@ define(['jquery', 'underscore', 'backbone', 'app', 'models/ConfigHolder', './con
events: {
'click .settings-menu li > a': 'change_section',
- 'click .btn-add': 'choosePlugin', // TODO not in scope
'click .icon-remove': 'deleteConfig'
},
@@ -41,6 +40,7 @@ define(['jquery', 'underscore', 'backbone', 'app', 'models/ConfigHolder', './con
});
this.listenTo(App.vent, 'config:open', this.openConfig);
+ this.listenTo(App.vent, 'config:change', this.refresh);
this.refresh();
},
@@ -75,7 +75,7 @@ define(['jquery', 'underscore', 'backbone', 'app', 'models/ConfigHolder', './con
addons.push(item);
});
- this.ui.menu.html(this.templateMenu({
+ this.$(this.ui.menu).html(this.templateMenu({
core: this.coreConfig,
plugin: plugins,
addon: addons
@@ -177,7 +177,7 @@ define(['jquery', 'underscore', 'backbone', 'app', 'models/ConfigHolder', './con
$.ajax(App.apiRequest('deleteConfig', {plugin: name}, { success: function() {
self.refresh();
}}));
-
+ return false;
}
});