/** * @package AcyMailing for WordPress * @version 6.1.6 * @author acyba.com * @copyright (C) 2009-2019 ACYBA S.A.R.L. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ jQuery(document).ready(function(e){e(".acym__file__select__add").off("click").on("click",function(t){var c=e("#acym__file__select__mapid").val(),n=t.currentTarget.getAttribute("mapdata"),a=e("#currentPath").val();e("#"+c,window.parent.document).val(a+"/"+n),e("#"+c+"suppr",window.parent.document).css("display",""),n.length>30&&(n=n.substr(0,12)+"..."+n.substr(n.length-12)),e("#"+c+"selection",window.parent.document).html(n),e("#acym__campaign__email__"+c,window.parent.document).closest(".reveal-overlay").click()}),e("#displaytree").on("click",function(){var t=e("#treefile");"none"==t.css("display")?t.css("display","block"):t.css("display","none")}),e(".tree-child-item").off("click").on("click",function(e){e.stopPropagation(),e.preventDefault();var t=e.currentTarget.getAttribute("data-path"),c=window.location.href,n=c.substring(c.lastIndexOf("&")+1);"selected_folder"==(n=n.split("="))?c=c.replace(n,"selected_folder="+t):c+="¤tFolder="+t,window.location.href=c})});