diff options
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(); } }); |