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();
|
2023-09-13 19:55:33 +02:00
|
|
|
if (select.open)
|
2022-09-26 13:36:10 +02:00
|
|
|
{
|
2023-09-13 19:55:33 +02:00
|
|
|
select.hide();
|
2022-09-26 13:36:10 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2023-09-13 19:55:33 +02:00
|
|
|
select.show();
|
2022-09-26 13:36:10 +02:00
|
|
|
}
|
2022-07-19 16:50:02 +02:00
|
|
|
|
2014-02-16 11:23:41 +01:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|