From 13c57b69de3825cb7755f548a417dbd993f90bfb Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 11 Aug 2013 22:03:39 +0200 Subject: fixed account removing --- pyload/web/app/scripts/views/accounts/accountView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyload/web/app/scripts/views/accounts/accountView.js') 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(); } }); -- cgit v1.2.3