diff options
| author | 2013-08-11 22:03:39 +0200 | |
|---|---|---|
| committer | 2013-08-11 22:03:39 +0200 | |
| commit | 13c57b69de3825cb7755f548a417dbd993f90bfb (patch) | |
| tree | efcd23ee3d739372aad190ced846c5e9e7eff2e0 /pyload/web/app/scripts/views/accounts/accountView.js | |
| parent | improved account list (diff) | |
| download | pyload-13c57b69de3825cb7755f548a417dbd993f90bfb.tar.xz | |
fixed account removing
Diffstat (limited to 'pyload/web/app/scripts/views/accounts/accountView.js')
| -rw-r--r-- | pyload/web/app/scripts/views/accounts/accountView.js | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/pyload/web/app/scripts/views/accounts/accountView.js b/pyload/web/app/scripts/views/accounts/accountView.js index 123327a27..f49deb0a6 100644 --- a/pyload/web/app/scripts/views/accounts/accountView.js +++ b/pyload/web/app/scripts/views/accounts/accountView.js @@ -12,7 +12,7 @@ define(['jquery', 'underscore', 'backbone', 'app', 'hbs!tpl/accounts/account'],                  'click .btn-success': 'toggle',                  'click .btn-blue': 'edit',                  'click .btn-yellow': 'refresh', -                'click .btn-danger': 'remove' +                'click .btn-danger': 'deleteAccount'              },              modelEvents: { @@ -41,7 +41,7 @@ define(['jquery', 'underscore', 'backbone', 'app', 'hbs!tpl/accounts/account'],                  this.model.fetch({refresh: true});              }, -            remove: function() { +            deleteAccount: function() {                  this.model.destroy();              }          }); | 
