| Current Path : /home/smartconb/www/armencom33/media/quixnxt/js/ |
| Current File : /home/smartconb/www/armencom33/media/quixnxt/js/iframe.js |
/*! For license information please see iframe.js.LICENSE.txt */
!function(t,e){t((function(){var e=t("body");e.on("click","a",(function(e){return"_blank"===t(e.target).attr("target")||(t(e.target).closest(".seo-snippet.qxui-drawer").length?void 0:(e.stopPropagation(),e.preventDefault(),!1))})),t("form").on("submit",(function(t){return t.stopPropagation(),t.preventDefault(),!1})),t("#pageoption-tab-wrapper a").click((function(e){e.preventDefault(),t(this).tab("show")})),t("html").addClass("quix-builder"),e.addClass("com_quix view-form layout-iframe").removeClass("modal"),e.on("mouseover",".qx-element-wrap",(function(e){e.preventDefault(),t(this).find("button, a").attr("onclick","false")})),e.on("mouseover",".qx-element-gallery__wrapper",(function(e){e.preventDefault(),t(".qx-element-gallery__wrapper a").each((function(){t(this).attr("href",t(this).attr("data-href"))}))})),e.on("mouseover",".qx-fb-columns",(function(e){e.preventDefault(),t(".qx-col-wrap").each((function(){if(parseInt(t(this).css("margin-right").length)){var e=parseInt(t(this).css("margin-right"))-1;t(this).find(".react-resizable-handle").css("margin-right","-"+e+"px")}}))})),e.on("mouseover",".fm-modal.qxui-modal--with-tab",(function(e){e.preventDefault(),t(this).find(".qxui-tabs-content").addClass("qxui-tabs-bottom-content")}))})),document.body.addEventListener("click",(function(t){var n=t.target;if(n.hasAttribute("data-node-path")||(n=n.closest("[data-node-path]")),n){var a={node:n.getAttribute("data-node-path").split("."),value:n.getAttribute("data-value-path").split(".")};tinymce.init({target:n,menubar:!1,inline:!0,toolbar:"undo redo | bold italic underline",forced_root_block:"",setup:function(t){t.on("init",(function(t){t.target.focus()})).on("blur",(function(t){var n=t.target.getContent();e.parent.postMessage({type:"INLINE_EDITED_CONTENT",path:a,content:n},e.location.origin),setTimeout((function(){t.target.remove()}),1e3)}))}})}}))}(window.jQuery,window);