1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-11 03:42:16 +00:00

Merge pull request #515 from haiwen/hide_group_nav_after_click

Hide group nav popup when click a group
This commit is contained in:
Daniel Pan 2015-04-25 14:40:57 +08:00
commit e68d81279c

View File

@ -26,7 +26,7 @@ define([
'click #top-nav-grp-list .item': 'visitGroup' 'click #top-nav-grp-list .item': 'visitGroup'
}, },
showPopup: function() { showPopup: function(e) {
this.popup.removeClass('hide'); this.popup.removeClass('hide');
}, },
@ -43,6 +43,7 @@ define([
}, },
visitGroup: function(e) { visitGroup: function(e) {
this.hidePopup(e);
location.href = $(e.currentTarget).attr('data-url'); location.href = $(e.currentTarget).attr('data-url');
} }
}); });