From 9ea1ab90b4705ef4d5ce37ded36a214f276c0a18 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 31 Mar 2013 18:32:13 +0200 Subject: add and delete accounts, db will be resetted --- module/web/static/js/views/accounts/accountListView.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'module/web/static/js/views/accounts/accountListView.js') diff --git a/module/web/static/js/views/accounts/accountListView.js b/module/web/static/js/views/accounts/accountListView.js index ea01f679e..68dffaa98 100644 --- a/module/web/static/js/views/accounts/accountListView.js +++ b/module/web/static/js/views/accounts/accountListView.js @@ -26,8 +26,10 @@ define(['jquery', 'underscore', 'backbone', 'app', 'collections/AccountList', '. render: function() { var self = this; + App.vent.trigger('accounts:destroyContent'); + // TODO trs cant' be animated this.accounts.each(function(account) { - self.content.append(new accountView({model: account}).render().el); + self.content.appendWithHeight(new accountView({model: account}).render().el); }); }, -- cgit v1.2.3