From d4fabd4878050fdfea4e88dfe54eb90b4e35690f Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 20 Feb 2013 17:05:30 +0100 Subject: tooltips and other improvements on webui --- module/web/static/js/views/abstract/itemView.js | 11 ++++++++--- module/web/static/js/views/dashboardView.js | 20 ++++---------------- module/web/static/js/views/fileView.js | 6 ++---- module/web/static/js/views/packageView.js | 23 ++++++++++++++++++----- module/web/static/js/views/selectionView.js | 19 ++++++++++++++----- 5 files changed, 46 insertions(+), 33 deletions(-) (limited to 'module/web/static/js/views') diff --git a/module/web/static/js/views/abstract/itemView.js b/module/web/static/js/views/abstract/itemView.js index 1c14e7dc3..75b058874 100644 --- a/module/web/static/js/views/abstract/itemView.js +++ b/module/web/static/js/views/abstract/itemView.js @@ -8,14 +8,13 @@ define(['jquery', 'backbone', 'underscore'], function($, Backbone, _) { destroy: function() { this.undelegateEvents(); this.unbind(); - if (this.onDestroy){ + if (this.onDestroy) { this.onDestroy(); } this.$el.removeData().unbind(); this.remove(); }, - hide: function() { this.$el.slideUp(); }, @@ -25,9 +24,15 @@ define(['jquery', 'backbone', 'underscore'], function($, Backbone, _) { }, deleteItem: function(e) { - if(e) + if (e) e.stopPropagation(); this.model.destroy(); + }, + + restart: function(e) { + if(e) + e.stopPropagation(); + this.model.restart(); } }); diff --git a/module/web/static/js/views/dashboardView.js b/module/web/static/js/views/dashboardView.js index 7f2b9809a..9d5b62cc6 100644 --- a/module/web/static/js/views/dashboardView.js +++ b/module/web/static/js/views/dashboardView.js @@ -8,7 +8,6 @@ define(['jquery', 'backbone', 'underscore', 'app', 'models/TreeCollection', el: '#content', events: { - 'click #show_active': 'filter' }, //