mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-15 11:11:49 +01:00
e323cd1d79
Update shoelace to 2.9.0
34 lines
708 B
JavaScript
34 lines
708 B
JavaScript
/**
|
|
* EGroupware: Pixelegg template: hiding/showing header
|
|
*
|
|
* @link http://www.egroupware.org
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
* @author Wolfgang Ott <wolfgang.ott@pixelegg.de>
|
|
* @package pixelegg
|
|
*/
|
|
|
|
egw_ready.then(function()
|
|
{
|
|
/**
|
|
* replace [+] on mouseover with quick-add selectbox
|
|
*
|
|
* Must run after DOM is ready!
|
|
*/
|
|
jQuery('#quick_add').on({
|
|
click: function(ev){
|
|
// do NOT react on bubbeling events from contained selectbox
|
|
var select = document.getElementById('quick_add_selectbox');
|
|
ev.stopImmediatePropagation();
|
|
if (select.open)
|
|
{
|
|
select.hide();
|
|
}
|
|
else
|
|
{
|
|
select.show();
|
|
}
|
|
|
|
}
|
|
});
|
|
});
|