mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-15 06:44:16 +00:00
remove _hideDropdown() in dropdown view
This commit is contained in:
@@ -39,21 +39,6 @@ define([
|
|||||||
this.$el.on('click', '.js-dropdown-toggle', _.bind(this.toggleDropdown, this));
|
this.$el.on('click', '.js-dropdown-toggle', _.bind(this.toggleDropdown, this));
|
||||||
},
|
},
|
||||||
|
|
||||||
_hideDropdown: function(e) {
|
|
||||||
var view = e.data.view;
|
|
||||||
var target = e.target || event.srcElement;
|
|
||||||
if (!view.$(view.popupClass).is(target)
|
|
||||||
&& !view.$(view.popupClass).find('*').is(target)
|
|
||||||
&& !view.$(view.toggleClass).is(target)) {
|
|
||||||
$(view.popupClass).addClass('hide');
|
|
||||||
view.rmHighlight();
|
|
||||||
$(document).off('click', view._hidePopup);
|
|
||||||
if (view.onPopupHide) {
|
|
||||||
view.onPopupHide();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
hide: function() {
|
hide: function() {
|
||||||
app.ui.currentDropdown = null;
|
app.ui.currentDropdown = null;
|
||||||
this.$('.js-dropdown-content').addClass('hide');
|
this.$('.js-dropdown-content').addClass('hide');
|
||||||
|
Reference in New Issue
Block a user