AutorÃa | Ultima modificación | Ver Log |
/*** unilabel modal helper** @author Andreas Grabs <info@grabs-edv.de>* @copyright 2018 onwards Grabs EDV {@link https://www.grabs-edv.de}* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later*/define("mod_unilabel/modal_helper",["jquery"],(function($){return{init:function(modalselector){$(modalselector).on("show.bs.modal",(function(){$(this).appendTo("body")})),$(document).on("show.bs.modal",".modal",(function(){var zIndex=1040+10*$(".modal:visible").length;$(this).css("z-index",zIndex),setTimeout((function(){$(".modal-backdrop").not(".modal-stack").css("z-index",zIndex-1).addClass("modal-stack")}),100)})),$(document).on("hidden.bs.modal",(function(){$(".modal.show").length>0&&$("body").addClass("modal-open")}))},show:function(modalselector){$(modalselector).modal("show")}}}));//# sourceMappingURL=modal_helper.min.js.map