1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 02:42:47 +00:00

remove _hideDropdown() in dropdown view

This commit is contained in:
Daniel Pan
2016-03-30 17:10:25 +08:00
parent f5498dd835
commit d66dc30179

View File

@@ -39,21 +39,6 @@ define([
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() {
app.ui.currentDropdown = null;
this.$('.js-dropdown-content').addClass('hide');