mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 20:40:14 +01:00
Close taglist dropdown if the sidebox scrolls, as this leaves the dropdown behind
This commit is contained in:
parent
f9b5b2fc1e
commit
80c1097265
@ -328,9 +328,12 @@ var et2_taglist = (function(){ "use strict"; return et2_selectbox.extend([et2_IR
|
|||||||
this.taglist.combobox.height(this.taglist.combobox.height() - (bottom - $j(window).height()) - 5);
|
this.taglist.combobox.height(this.taglist.combobox.height() - (bottom - $j(window).height()) - 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close dropdown if click elsewhere, but wait until after or it
|
// Close dropdown if click elsewhere or scroll the sidebox,
|
||||||
// will close immediately
|
// but wait until after or it will close immediately
|
||||||
window.setTimeout(function() {
|
window.setTimeout(function() {
|
||||||
|
$j('.egw_fw_ui_scrollarea').one('scroll mousewheel', function() {
|
||||||
|
taglist.collapse();
|
||||||
|
});
|
||||||
$j('body').one('click',function() {
|
$j('body').one('click',function() {
|
||||||
taglist.collapse();
|
taglist.collapse();
|
||||||
});},1
|
});},1
|
||||||
|
Loading…
Reference in New Issue
Block a user