From 030904487d0b2f87c4e2cbf296a916593fb3f9f1 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 24 Feb 2013 18:54:48 +0100 Subject: improved package and global menu --- module/web/static/js/views/packageView.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'module/web/static/js') diff --git a/module/web/static/js/views/packageView.js b/module/web/static/js/views/packageView.js index 93ebfb7e4..7bb4bb472 100644 --- a/module/web/static/js/views/packageView.js +++ b/module/web/static/js/views/packageView.js @@ -9,7 +9,6 @@ define(['jquery', 'app', 'views/abstract/itemView', 'underscore'], template: _.compile($("#template-package").html()), events: { 'click .package-name': 'open', - 'click .iconf-trash': 'deleteItem', 'click .iconf-refresh': 'restart', 'click .select': 'select' }, @@ -25,10 +24,10 @@ define(['jquery', 'app', 'views/abstract/itemView', 'underscore'], this.listenTo(this.model, 'change', this.render); this.listenTo(this.model, 'remove', this.unrender); - // Clear drop down menu +// // Clear drop down menu var self = this; this.$el.on('mouseleave', function() { - self.$('.dropdown-menu').hide(); + self.$('.dropdown-menu').parent().removeClass('open'); }); }, @@ -41,10 +40,7 @@ define(['jquery', 'app', 'views/abstract/itemView', 'underscore'], this.$el.initTooltips(); // Init the dropdown-menu - var self = this; - this.$('.iconf-chevron-down').click(function() { - self.$('.dropdown-menu').stop(true, true).delay(200).animate({opacity: 'toggle'}); - }); + this.$('.iconf-chevron-down').dropdown(); return this; }, -- cgit v1.2.3