egroupware_official/pixelegg/js/slider.js
2022-09-22 10:54:33 +02:00

27 lines
677 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');
select.dropdown.open = !select.dropdown.open ? true : false;
ev.stopPropagation();
}
});
});