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:
commit
e68d81279c
@ -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');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user