From 9b9ba2a20409486e6645e0429220447f84199cc7 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 30 Mar 2013 16:38:37 +0100 Subject: show active addons --- module/web/static/js/views/settings/settingsView.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'module/web/static/js/views/settings/settingsView.js') diff --git a/module/web/static/js/views/settings/settingsView.js b/module/web/static/js/views/settings/settingsView.js index 58507f51a..4e83322e5 100644 --- a/module/web/static/js/views/settings/settingsView.js +++ b/module/web/static/js/views/settings/settingsView.js @@ -9,7 +9,8 @@ define(['jquery', 'underscore', 'backbone', 'app', 'models/ConfigHolder', './con events: { 'click .settings-menu li > a': 'change_section', - 'click .btn-add': 'choosePlugin' + 'click .btn-add': 'choosePlugin', + 'click .iconf-remove': 'deleteConfig' }, menu: null, @@ -110,7 +111,8 @@ define(['jquery', 'underscore', 'backbone', 'app', 'models/ConfigHolder', './con }, failure: function() { - + // TODO + this.config = null; }, change_section: function(e) { @@ -134,6 +136,14 @@ define(['jquery', 'underscore', 'backbone', 'app', 'models/ConfigHolder', './con self.modal.show(); }); + }, + + deleteConfig: function(e){ + e.stopPropagation(); + var el = $(e.target).parent().parent(); + var name = el.data("name"); + + console.log("Delete config " + name); } }); -- cgit v1.2.3