2013-11-18 21:48:59 +01:00
|
|
|
/**
|
2021-06-08 15:11:37 +02:00
|
|
|
* EGroupware: Pixelegg template: hiding/showing header
|
2013-11-18 21:48:59 +01:00
|
|
|
*
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
2013-11-20 09:41:08 +01:00
|
|
|
* @author Wolfgang Ott <wolfgang.ott@pixelegg.de>
|
2013-11-18 21:48:59 +01:00
|
|
|
* @package pixelegg
|
|
|
|
*/
|
|
|
|
|
2021-06-08 15:11:37 +02:00
|
|
|
egw_ready.then(function()
|
|
|
|
{
|
2014-02-16 11:23:41 +01:00
|
|
|
/**
|
|
|
|
* replace [+] on mouseover with quick-add selectbox
|
|
|
|
*
|
|
|
|
* Must run after DOM is ready!
|
|
|
|
*/
|
2016-06-02 16:51:15 +02:00
|
|
|
jQuery('#quick_add').on({
|
2022-09-22 10:54:33 +02:00
|
|
|
click: function(ev){
|
2014-02-16 11:23:41 +01:00
|
|
|
// do NOT react on bubbeling events from contained selectbox
|
2022-07-19 16:50:02 +02:00
|
|
|
var select = document.getElementById('quick_add_selectbox');
|
2022-09-26 13:36:10 +02:00
|
|
|
ev.stopImmediatePropagation();
|
|
|
|
if (select.dropdown.open)
|
|
|
|
{
|
|
|
|
select.dropdown.hide();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
select.dropdown.show();
|
|
|
|
}
|
2022-07-19 16:50:02 +02:00
|
|
|
|
2014-02-16 11:23:41 +01:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|