jQuery(function(e){var i=window.parent.document.getElementById("bodyBgColorInput").value;i!=undefined&&6==i.length||(i="FFFFFF"),e("ul.dividers").css("backgroundColor","#"+i),e(document).on("click",".dividers a",function(){e(".dividers a").removeClass("selected"),e(this).addClass("selected");var i=e(this).children(":first");return e("#divider_src").val(i.attr("src")),e("#divider_width").val(i.attr("width")),e("#divider_height").val(i.attr("height")),!1}),e("#dividers-submit").click(function(){return wysijaAJAX.task="set_divider",wysijaAJAX._wpnonce=wysijanonces.campaigns.set_divider,wysijaAJAX.id=e("#email_id").val(),wysijaAJAX.wysijaData={src:e("#divider_src").val(),width:e("#divider_width").val(),height:e("#divider_height").val()},e.ajax({type:"POST",url:wysijaAJAX.ajaxurl,data:wysijaAJAX,success:function(i){!1!==i.result&&(window.parent.Wysija.setDivider(Base64.decode(i.result),wysijaAJAX.wysijaData),window.parent.Wysija.replaceDividers(),window.parent.Wysija.init(),window.parent.Wysija.autoSave(),window.parent.WysijaPopup.close())}}),!1})});