summaryrefslogtreecommitdiffstats
path: root/module/web/static/js
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-02-24 18:54:48 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-02-24 18:54:48 +0100
commit030904487d0b2f87c4e2cbf296a916593fb3f9f1 (patch)
tree48e3afa2a5966719cf3dba3c908b8e96bf13c0e3 /module/web/static/js
parentMerge branch 'master' of github.com:pyload/pyload (diff)
downloadpyload-030904487d0b2f87c4e2cbf296a916593fb3f9f1.tar.xz
improved package and global menu
Diffstat (limited to 'module/web/static/js')
-rw-r--r--module/web/static/js/views/packageView.js10
1 files changed, 3 insertions, 7 deletions
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;
},