summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/scripts/views/accounts/accountEdit.js
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-08-16 19:59:25 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-08-16 19:59:43 +0200
commit4e9319f2f932a3baf7a8c9c0548eafe8647238f2 (patch)
tree16d66a41c96ab31ea4fb008c7cbb5b92527db885 /pyload/web/app/scripts/views/accounts/accountEdit.js
parentAdapted SimplydebridCom (diff)
downloadpyload-4e9319f2f932a3baf7a8c9c0548eafe8647238f2.tar.xz
settings for individual accounts
Diffstat (limited to 'pyload/web/app/scripts/views/accounts/accountEdit.js')
-rw-r--r--pyload/web/app/scripts/views/accounts/accountEdit.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/pyload/web/app/scripts/views/accounts/accountEdit.js b/pyload/web/app/scripts/views/accounts/accountEdit.js
index b9109390b..503860a5e 100644
--- a/pyload/web/app/scripts/views/accounts/accountEdit.js
+++ b/pyload/web/app/scripts/views/accounts/accountEdit.js
@@ -1,5 +1,5 @@
-define(['jquery', 'underscore', 'app', 'views/abstract/modalView', 'hbs!tpl/accounts/editAccount'],
- function($, _, App, modalView, template) {
+define(['jquery', 'underscore', 'app', 'views/abstract/modalView', 'views/input/inputRenderer', 'hbs!tpl/accounts/editAccount', 'hbs!tpl/settings/configItem'],
+ function($, _, App, modalView, renderForm, template, templateItem) {
'use strict';
return modalView.extend({
@@ -16,6 +16,10 @@ define(['jquery', 'underscore', 'app', 'views/abstract/modalView', 'hbs!tpl/acco
},
onRender: function() {
+ renderForm(this.$('.account-config'),
+ this.model.get('config'),
+ templateItem
+ );
},
save: function() {
@@ -23,7 +27,7 @@ define(['jquery', 'underscore', 'app', 'views/abstract/modalView', 'hbs!tpl/acco
if (password !== '') {
this.model.setPassword(password);
}
-
+ this.model.save();
this.hide();
return false;
},