function showWaitingFogLayer(){var a=jQuery('');a.height(jQuery(window).height());jQuery(".wfsr").wrap('
').before(a)}function hideWaitingFogLayer(){jQuery(".wfsr").prev("span").remove();jQuery(".wfsr").unwrap()}function doInstallModule(a){var f=[];f.module_name=a;exec_xml("install","procInstallAdminInstall",f,completeInstallModule);showWaitingFogLayer()} function doUpdateModule(a){var f=[];f.module_name=a;exec_xml("install","procInstallAdminUpdate",f,completeInstallModule);showWaitingFogLayer()}function completeInstallModule(a){alert(a.message);location.reload()} jQuery(function(a){function f(){var b=a(".x>.xin>.body"),d=b.find(">.gnb"),e=b.children("#content.content");e.width("99.99%");setTimeout(function(){e.removeAttr("style");d.height()>e.height()&&e.height(d.height())},100)}window.scrollTo(0,0);a(".x .skipNav>a").click(function(){a(a(this).attr("href")).attr("tabindex","0").css("outline","0").focus()});a(document.body).on("click",".x [data-toggle]",function(){var b=a(this),d=a(b.attr("data-toggle"));d.toggle();d.is(":visible")&&!d.find("a,input,button,textarea,select").length? d.attr("tabindex","0").not(":disabled").focus():d.is(":visible")&&d.find("a,input,button,textarea,select").length?d.find("a,input,button,textarea,select").not(":disabled").eq(0).focus():b.focus();return!1});a(document.body).on("click",".x [data-show]",function(){a(a(this).attr("data-show")).show().attr("tabindex","0").focus();return!1});a(document.body).on("click",".x [data-hide]",function(){var b=a(this);a(b.attr("data-hide")).hide();b.focus();return!1});a.fn.xeTabbable=function(){a(this).each(function(){var b= a(this);b.find(">.x_nav-tabs>li>a").each(function(b){a(this).attr("data-index",b+1)});b.find(">.x_tab-content>.x_tab-pane").each(function(b){a(this).attr("data-index",b+1)})});a('.x .x_tab-content>.x_tab-pane:not(".x_active")').hide()};a(".x .x_tabbable").xeTabbable();a(document.body).on("click",'.x .x_nav-tabs>li>a[href*="#"]',function(){var b=a(this);if(b.parent("li").hasClass("x_disabled"))return!1;b.parent("li").addClass("x_active").siblings().removeClass("x_active");b.closest(".x_nav-tabs").next(".x_tab-content").find(">.x_tab-pane").eq(b.attr("data-index")- 1).addClass("x_active").show().siblings().removeClass("x_active").hide();a(this).parents(".x_tabbable").trigger("tab_change",[parseInt(a(this).attr("data-index"))-1,a(this)]);return!1});a.fn.gnb=function(){var b=a(".x>.xin>.body"),d=b.find(">.gnb"),e=d.find(">ul>li");e.find(">a").prepend("");e.each(function(b){a(this).attr("data-index",b+1)});var g=e.find(">ul>li.active_").closest("li.active").attr("data-index");e.find(">ul>li.active_").clone().addClass("active").attr("data-index",g).prependTo("#gnbNav").find(">a").prepend(""); e.find("ul").prev("a").bind("click focus",function(){a(this).parent("li").addClass("open").siblings("li").removeClass("open");b.removeClass("wide");f();return!1});d.find('>a[href="#gnbNav"]').click(function(){a(this).parent(".gnb").toggleClass("open");b.toggleClass("wide");f();var d=new Date;d.setTime(d.getTime()+30758400);a(this).parent(".gnb").hasClass("open")?setCookie("__xe_admin_gnb_status","open",d):setCookie("__xe_admin_gnb_status","close",d);return!1});"open"==getCookie("__xe_admin_gnb_status")&& d.find('>a[href="#gnbNav"]').trigger("click");d.prepend(''); a(".x .section.collapse>h1>.snToggle").removeClass("x_icon-chevron-up").addClass("x_icon-chevron-down");e.find(">.snToggle").click(function(){var b=a(this),d=b.closest(".section");d.hasClass("collapse")?(d.removeClass("collapse").children("h1:first").siblings().show(),b.removeClass("x_icon-chevron-down").addClass("x_icon-chevron-up")):(d.addClass("collapse").children("h1:first").siblings().hide(),b.removeClass("x_icon-chevron-up").addClass("x_icon-chevron-down"));f()})}e=a(".x .x_alert");e.prepend(''); e.children(".x_close").click(function(){a(this).parent(".x_alert").hide()});a(".x .x_btn").click(function(){if(a(this).hasClass("x_disabled"))return!1});a.fn.vr=function(){this.each(function(){var b=a(this);"|"==b.text()&&b.addClass("vr").filter(":first-child, :last-child").remove()})};a(".x i").vr();a.fn.labelMaker=function(){this.each(function(b){var b=b+1,d=a(this),b="i"+b;d.next("input, textarea, select").filter("[id]").not(":radio, :checkbox").length?d.attr("for",d.next().attr("id")):d.next("input, textarea, select").not("[id]").not(":radio, :checkbox").length? d.attr("for",b).next().attr("id",b):d.prev(":radio, :checkbox").filter("[id]").length?d.attr("for",d.prev().attr("id")):d.prev(":radio, :checkbox").not("[id]").length?d.attr("for",b).prev().attr("id",b):d.children("input, textarea, select").filter("[id]").length?d.attr("for",d.children("input, textarea, select").filter("[id]").eq(0).attr("id")):d.children("input, textarea, select").not("[id]").length&&d.attr("for",b).children("input, textarea, select").not("[id]").eq(0).attr("id",b)})};a("label:not([for])").labelMaker(); a.fn.checkToggle=function(){function b(){setTimeout(function(){a(":checked").parent("label").addClass("checked");a(':not(":checked")').parent("label").removeClass("checked")},0)}this.change(b);b()};a(":radio, :checkbox").checkToggle();a.fn.fileTypeOverlap=function(){this.each(function(){var b=a(this);b.wrap('').before(''),b.click(function(){e.data("anchor").trigger("close.mw")}), e.find("[data-hide]").click(function(){e.data("anchor").trigger("close.mw")}),a("body").append('
').append(e),e.prepend(b));e.data("anchor",f);b=a.Event("before-open.mw");f.trigger(b);if(b.isDefaultPrevented())return!1;e=a(f.attr("href"));b=f.data("duration")||"fast";e.data("state","showing");a(document).bind("keydown.mw",function(a){if(27==a.which)return f.trigger("close.mw"),!1});e.fadeIn(b,function(){f.trigger("after-open.mw")}).find("button.x_close:first").focus().end().prev(".x_modal-backdrop").show(); a("body").css("overflow","hidden")}).bind("close.mw",function(){var f=a(this),e,b;e=a.Event("before-close.mw");f.trigger(e);if(e.isDefaultPrevented())return!1;e=a(f.attr("href"));b=f.data("duration")||"fast";e.data("state","hiding");e.fadeOut(b,function(){f.trigger("after-close.mw")}).prev(".x_modal-backdrop").hide();a("body").css("overflow","auto");f.focus()});a("div.x_modal").addClass("x").hide()};a("a.modalAnchor").xeModalWindow()}); jQuery(function(a){var f=!1;a.fn.xeContentToggler=function(){this.not(".xe-content-toggler").addClass("xe-content-toggler").each(function(){var e=a(this);$layer=a(e.attr("href"));$layer.hide().not(".xe-toggling-content").addClass("xe-toggling-content").mousedown(function(){f=!0}).focusout(function(){setTimeout(function(){!f&&(!$layer.find(":focus").length&&"showing"==$layer.data("state"))&&e.trigger("close.tc");f=!1},1)})}).click(function(){var e=a(this),b;b=a(e.attr("href"));b.data("anchor",e);"showing"== b.data("state")?e.trigger("close.tc"):e.trigger("open.tc");return!1}).bind("open.tc",function(){function e(){b.trigger("after-open.tc")}var b=a(this),d,j,g;d=a(b.attr("href"));j=b.data("effect");g=b.data("duration")||"fast";d.data("state","showing");b.trigger("before-open.tc");f=!1;a(document).unbind("mousedown.tc keydown.tc").bind("mousedown.tc keydown.tc",function(e){if(e&&("keydown"==e.type&&27!=e.which||"mousedown"==e.type&&(e=a(e.target),e.is("html,.tgAnchor,.tgContent")||d.has(e).length)))return!0; b.trigger("close.tc");return!1});switch(j){case "slide":d.slideDown(g,e);break;case "slide-h":j=d.css({"overflow-x":"",width:""}).width();d.show().css({"overflow-x":"hidden",width:"0px"}).animate({width:j},g,function(){d.css({"overflow-x":"",width:""});e()});break;case "fade":d.fadeIn(g,e);break;default:d.show(),b.trigger("after-open.tc")}}).bind("close.tc",function(){function e(){b.trigger("after-close.tc")}var b=a(this),d,f,g;a(document).unbind("mousedown.tc keydown.tc");d=a(b.attr("href"));f=b.data("effect"); g=b.data("duration")||"fast";d.data("state","hiding");b.trigger("before-close.tc");switch(f){case "slide":d.slideUp(g,e);break;case "slide-h":d.animate({width:0},g,function(){d.hide();e()});break;case "fade":d.fadeOut(g,e);break;default:d.hide(),b.trigger("after-close.tc")}});return this};a("a.tgAnchor").xeContentToggler()}); jQuery(function(a){a.fn.xeModuleFinder=function(){this.not(".xe-module-finder").addClass("xe-module-finder").find("a.tgAnchor.findsite").bind("before-open.tc",function(){var f,e,b;f=a(this);e=a(f.attr("href")).find(">ul");b=f.prev("input:text").val();a.exec_json("admin.getSiteAllList",{domain:b},function(b){var j=b.site_list,g,l;e.empty();f.closest(".modulefinder").find(".moduleList,.moduleIdList").attr("disabled","disabled");if(b.error||!a.isArray(j))f.trigger("close.tc");else{g=0;for(l=j.length;g< l;g++)b=a("
  • ").appendTo(e),a('