diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-16 19:59:25 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-08-16 19:59:43 +0200 |
commit | 4e9319f2f932a3baf7a8c9c0548eafe8647238f2 (patch) | |
tree | 16d66a41c96ab31ea4fb008c7cbb5b92527db885 /pyload/web/app/scripts/views/accounts/accountEdit.js | |
parent | Adapted SimplydebridCom (diff) | |
download | pyload-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.js | 10 |
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; }, |