mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Open quick add dropdown menu only on click
This commit is contained in:
parent
2952df2799
commit
49b78e2f24
@ -15,23 +15,12 @@ egw_ready.then(function()
|
||||
* Must run after DOM is ready!
|
||||
*/
|
||||
jQuery('#quick_add').on({
|
||||
mouseover: function(ev){
|
||||
click: function(ev){
|
||||
// do NOT react on bubbeling events from contained selectbox
|
||||
var select = document.getElementById('quick_add_selectbox');
|
||||
select.dropdown.open = true;
|
||||
select.dropdown.open = !select.dropdown.open ? true : false;
|
||||
ev.stopPropagation();
|
||||
|
||||
},
|
||||
mouseout: function(ev){
|
||||
var select = document.getElementById('quick_add_selectbox');
|
||||
|
||||
// do NOT react on bubbeling events from contained selectbox
|
||||
if (ev.target && ev.relatedTarget && ev.currentTarget.id != "quick_add" && ev.currentTarget.nodeName != 'ET2-SELECT')
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
ev.stopPropagation();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user