diff --git a/modules/admin/tpl/css/admin.css b/modules/admin/tpl/css/admin.css index d95542824..f7b18e9eb 100644 --- a/modules/admin/tpl/css/admin.css +++ b/modules/admin/tpl/css/admin.css @@ -19,6 +19,7 @@ body>.x, .x a[target="_blank"]:after{ content:"";display:inline-block;width:14px;height:14px;vertical-align:middle;margin:-2px 0 0 2px;background-position:-120px -72px;opacity:.3;filter:alpha(opacity=30)} .x a[target="_blank"]:hover:after, .x a[target="_blank"]:focus:after{opacity:.7;filter:alpha(opacity=70)} +.x mark{background-color:#FF0;color:#000} /* Bootstrap Override */ .x .x_page-header{padding-bottom:0;border-bottom:2px solid #ddd} .x .x_page-header>h1{margin-bottom:0;font-size:24px;color:#333} @@ -158,6 +159,9 @@ body>.x, .x td>p:only-of-type, .x td>p:last-of-type{margin:0} .x [data-display="none"]{display:none} +.x .x_page-header .path{font-size:14px;display:inline-block} +.x .x_page-header .path:first-letter{color:#ccc;font-weight:normal} +.x [data-toggle]+.x_help-block{margin-top:10px} /* Image Sprite */ .x a[target="_blank"]:after, .x>.xin>.body>.gnb>ul>li>a>i, @@ -175,7 +179,7 @@ body>.x, .x>.xin>.header{position:relative;z-index:2;border-radius:5px 5px 0 0;padding:10px 15px;zoom:1;border-bottom:1px solid #ddd;background:#f6f6f6;background:-webkit-gradient(linear, left top, left bottom, from(#F6F6F6), to(#F1F1F1));background:-moz-linear-gradient(top,#F6F6F6,#F1F1F1);background:-o-linear-gradient(top,#F6F6F6,#F1F1F1)} .x>.xin>.header:after{content:"";display:block;clear:both} .x>.xin>.body{position:relative;zoom:1;padding:0 20px 50px 215px} -.x>.xin>.body.wide{padding:0 20px 0 70px} +.x>.xin>.body.wide{padding-left:70px} .x>.xin>.body:after{content:"";display:block;clear:both} .x>.xin>.body>.content{width:100%;padding:1px 0 0 0;float:right;margin:0 0 0 -100%;outline:none} .x>.xin>.body>.content>*:first-child{margin-top:0} @@ -222,7 +226,6 @@ body>.x, .x>.xin>.footer>.cache>*{color:#666} .x>.xin>.footer .vr{color:#ccc !important} /* GNB */ -.x>.xin>.body>.gnb>.close{background:none;border:0;position:absolute;top:0;left:0;width:100%;height:1px;overflow:hidden;margin:0;padding:0} .x>.xin>.body>.gnb ul{margin:0;padding:0;list-style:none} .x>.xin>.body>.gnb>ul{position:relative;z-index:1;box-shadow:2px 2px 4px #ddd;border-right:2px solid #fff;border-bottom:2px solid #fff} .x>.xin>.body>.gnb a{text-decoration:none;text-shadow:0 1px 0 #fff;color:#000;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} diff --git a/modules/admin/tpl/js/admin.js b/modules/admin/tpl/js/admin.js index 871ce20b0..9b095b2e0 100644 --- a/modules/admin/tpl/js/admin.js +++ b/modules/admin/tpl/js/admin.js @@ -182,14 +182,6 @@ jQuery(function($){ return false; }); - // GNB Close - $xGnb - .prepend('') - .append(''); - $xGnb.find('>.close').focus(function(){ - $xBody.addClass('wide'); - reflow(); - }); // Expert Menu Toggle $xGnb.find('.exMenu>button').click(function(){ $('#gnbNav').toggleClass('ex'); diff --git a/modules/admin/tpl/js/admin.min.js b/modules/admin/tpl/js/admin.min.js index 811402078..129ad9aff 100644 --- a/modules/admin/tpl/js/admin.min.js +++ b/modules/admin/tpl/js/admin.min.js @@ -1,61 +1 @@ -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);if(b.is("a")&&b.attr("href")!=b.attr("data-toggle")){var d=b.attr("href");b.attr("data-toggle", -d)}d=a(b.attr("data-toggle"));d.toggle();d.is(":visible")&&!d.find("a,input,button,textarea,select").length?d.not(":disabled").attr("tabindex","0").css("outline","0").focus():d.is(":visible")&&d.find("a,input,button,textarea,select").length?d.not(":disabled").find("a,input,button,textarea,select").eq(0).focus():b.focus();return!1});a(document.body).on("click",".x [data-show]",function(){var b=a(this);if(b.is("a")&&b.attr("href")!=b.attr("data-show")){var d=b.attr("href");b.attr("data-show",d)}a(b.attr("data-show")).show().attr("tabindex", -"0").focus();return!1});a(document.body).on("click",".x [data-hide]",function(){var b=a(this);if(b.is("a")&&b.attr("href")!=b.attr("data-hide")){var d=b.attr("href");b.attr("data-hide",d)}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(".x_tab-pane").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"),g=new Date;g.setTime(g.getTime()+30758400);e.find(">a").prepend("");e.each(function(b){a(this).attr("data-index",b+1)});var j=e.find(">ul>li.active_").closest("li.active").attr("data-index");e.find(">ul>li.active_").clone().addClass("active").attr("data-index",j).prependTo("#gnbNav").find(">a").prepend("");e.find(">a").click(function(){function d(){b.removeClass("wide");f()}var e=a(this).parent("li"), -g=e.hasClass("open"),k=e.hasClass("active"),j=1<=e.find(">ul").length,q=b.hasClass("wide");if(!g&&!k&&j)return e.addClass("open").find(">ul").slideDown(100),d(),!1;if(g&&!k&&j&&!q)return e.removeClass("open").find(">ul").slideUp(100),d(),!1;if(q&&!j||k||q&&g)return d(),!1});d.find('>a[href="#gnbNav"]').click(function(){a(this).parent(".gnb").toggleClass("open");b.toggleClass("wide");980>=a(window).width()&&!d.hasClass("open")&&a("#gnbNav").removeClass("ex");f();a(this).parent(".gnb").hasClass("open")? -setCookie("__xe_admin_gnb_status","open",g):setCookie("__xe_admin_gnb_status","close",g);return!1});d.prepend('').append('');d.find(">.close").focus(function(){b.addClass("wide");f()});d.find(".exMenu>button").click(function(){a("#gnbNav").toggleClass("ex");f();a("#gnbNav").hasClass("ex")?setCookie("__xe_admin_gnb_ex_status","open",g):setCookie("__xe_admin_gnb_ex_status","close",g)});(e=getCookie("__xe_admin_gnb_status"))&& -setCookie("__xe_admin_gnb_status",e,g);(e=getCookie("__xe_admin_gnb_ex_status"))&&setCookie("__xe_admin_gnb_xe_status",e,g)};a(".gnb").gnb();a(".x #lang").mouseleave(function(){a(this).hide()}).focusout(function(){var b=a(this);setTimeout(function(){b.find("a:focus").length||b.mouseleave()},500)});a('.x th>input[type="checkbox"]').change(function(){var b=a(this),d=b.data("name");b.closest("table").find("input:checkbox").filter(function(){var b=a(this);return!b.prop("disabled")&&(b.attr("name")==d|| -b.data("name")==d)}).prop("checked",b.prop("checked")).end().end().trigger("update.checkbox",[d,this.checked])});a(document.body).on("click",".x .x_pagination .x_disabled, .x .x_pagination .x_active",function(){return!1});if(1h1:first");e.append('');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"),b.removeClass("x_icon-chevron-down").addClass("x_icon-chevron-up")):(d.addClass("collapse"),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.attr("title"))})};a('input[type="file"].overlap').fileTypeOverlap();a.fn.xeMask=function(){this.each(function(){var b=a(this),d=b.text();/^([\w\-\.]+?)@(([\w-]+\.)+[a-z]{2,})$/ig.test(d)&&b.html(d.replace(/(@.+)$/,'...$1')).find(">.ellipsis").css({position:"absolute", -zIndex:1}).hover(function(){a(this).next(".cover").mouseover()},function(){a(this).next(".cover").mouseout()}).end().find(">.cover").css({zIndex:2,opacity:0}).hover(function(){a(this).css("opacity",1).prev("span").css("visibility","hidden")},function(){a(this).css("opacity",0).prev("span").css("visibility","visible")}).end()})};a(".masked").xeMask();a.fn.tableSpan=function(){this.each(function(){var b=a(this),d=b.find(">thead>tr:eq(0)>th").length,b=b.find(">tbody>tr:eq(0)>td:only-child");d!=b.attr("colspan")&& -b.attr("colspan",d).css("text-align","center")})};a("table").tableSpan()}); -jQuery(function(a){a.fn.xeModalWindow=function(){this.not(".xe-modal-window").addClass("xe-modal-window").each(function(){a(a(this).attr("href")).addClass("x").hide()}).click(function(){var f=a(this);"showing"==a(f.attr("href")).data("state")?f.trigger("close.mw"):f.trigger("open.mw");return!1}).bind("open.mw",function(){var f=a(this),e,b;e=a(f.attr("href"));e.parent("body").length||(b=a(''),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,k,g;d=a(b.attr("href"));k=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(k){case "slide":d.slideDown(g,e);break;case "slide-h":k=d.css({"overflow-x":"",width:""}).width();d.show().css({"overflow-x":"hidden",width:"0px"}).animate({width:k},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 k=b.site_list,g,j;e.empty();f.closest(".modulefinder").find(".moduleList,.moduleIdList").attr("disabled","disabled");if(b.error||!a.isArray(k))f.trigger("close.tc");else{g=0;for(j=k.length;g< -j;g++)b=a("").appendTo(e),a('').text(k[g].domain).data("site_srl",k[g].site_srl).appendTo(b)}})}).end().find(".tgContent.suggestion").delegate("button","click",function(){var f,e;f=a(this);e=f.closest(".modulefinder");e.find("a.tgAnchor.findsite").trigger("close.tc");a.exec_json("module.procModuleAdminGetList",{site_srl:f.data("site_srl")},function(b){var d=b.module_list,f;if(!b.error&&d){b=e.find(".moduleList").data("module_list",d).removeAttr("disabled").empty();for(f in d)d.hasOwnProperty(f)&& -a("").attr("value",f).text(d[f].title).appendTo(b);b.prop("selectedIndex",0).change().focus();b.is(":visible")||b.slideDown(100,function(){e.find(".moduleIdList:not(:visible)").slideDown(100).trigger("show")}).trigger("show")}})}).end().find(".moduleList,.moduleIdList").hide().end().find(".moduleList").change(function(){var f,e,b;f=a(this);e=f.val();b=f.data("module_list");if(b[e]){b=b[e].list;f=f.closest(".modulefinder").find(".moduleIdList").removeAttr("disabled").empty();for(var d in b)b.hasOwnProperty(d)&& -a("").attr("value",b[d].module_srl).text(b[d].browser_title).appendTo(f);f.prop("selectedIndex",0).change()}});return this};a(".modulefinder").xeModuleFinder()}); -jQuery(function(a){var f=0;_xeModuleSearch=function(){var e=this,b=a(this),d=b.data("multiple");d||(d="");var k="__module_searcher_"+f;f++;a.exec_json("module.getModuleAdminModuleSearcherHtml",{id:k,is_multiple:d},function(d){function f(a,b){var d;a.find("li div").width("");a.css("height","auto");a.css("overflow-y","");a.height()>b&&(d=a.find("li div"),d.width(d.width()-20+"px"),a.css("height",b+"px"),a.css("overflow-y","auto"))}function h(b){var d,e=RegExp(b,"ig"),g=u;m.empty();i=0;for(c=g.length;i< -c;i++){d=g[i].domain;if(b){if(!d.match(e))continue;d=d.replace(e,function(a){return''+a+""})}$li=a("").appendTo(m);a("").attr("href","#").html(d).data("site_srl",g[i].site_srl).appendTo($li)}f(m,t-r.parent("div").height());1==g.length&&m.find("a").trigger("click")}if(d&&d.html){b.after(d.html).addClass("tgAnchor").attr("href","#"+k).xeContentToggler();var l=b.next(".moduleWindow"),d=l.find(".siteList"),n=l.find(".moduleList"),p=l.find(".instanceList"),m=d.find(">ul"), -q=n.find(">ul"),s=p.find(">select"),r=l.find("input.siteFinder"),u,t=280;r.keyup(function(){h(r.val())});"undefined"==typeof console&&(console={log:function(){}});b.not(".xe-module-search").addClass("xe-module-search").parent().find(".moduleTrigger").bind("before-open.tc",function(){var b;b=a(this);m.empty();s.empty();n.hide();p.hide();a.exec_json("admin.getSiteAllList",{domain:""},function(d){var e=d.site_list;d.error||!a.isArray(e)?b.trigger("close.tc"):(u=e,h(r.val()),r.focus())})});l.find(".siteList>ul").delegate("a", -"click",function(b){var d;d=a(this);d.closest(".moduleSearch");q.empty();p.hide();a.exec_json("module.procModuleAdminGetList",{site_srl:d.data("site_srl")},function(b){var e=b.module_list,g;if(!b.error&&e){for(g in e)e.hasOwnProperty(g)&&($li=a("").appendTo(q),a("").attr("href","#").html(e[g].title).data("moduleInstanceList",e[g].list).appendTo($li));l.find(".moduleList").show();f(q,t);m.find("li").removeClass("x_active");d.parent("li").addClass("x_active")}});b.preventDefault()}).end().find(".moduleList>ul").delegate("a", -"click",function(b){var d,g;d=a(this);if(g=d.data("moduleInstanceList")){e.sSelectedModuleType=d.text();s.empty();for(var h in g)g.hasOwnProperty(h)&&($li=a("").html(g[h].browser_title+" ("+g[h].mid+")").appendTo(s).val(g[h].module_srl).data("mid",g[h].mid).data("module_srl",g[h].module_srl).data("layout_srl",g[h].layout_srl).data("browser_title",g[h].browser_title));p.show();f(s,t);q.find("li").removeClass("x_active");d.parent("li").addClass("x_active");b.preventDefault()}}).end().find(".moduleSearch_ok").click(function(d){var f= -[];s.find("option:selected").each(function(){f.push({type:e.sSelectedModuleType,module_srl:a(this).data("module_srl"),layout_srl:a(this).data("layout_srl"),browser_title:a(this).data("browser_title"),mid:a(this).data("mid")})});b.trigger("moduleSelect",[f]);a(".moduleTrigger").trigger("close.tc");d.preventDefault()})}});return this};a.fn.xeModuleSearch=function(){a(this).each(_xeModuleSearch)};a(".moduleTrigger").xeModuleSearch();a.fn.xeModuleSearchHtml=function(){var e=0;a(this).each(function(){var b= -a(this),d=b.attr("id");d||(d="__module_search_"+e);e++;var d=a(''+xe.cmd_find+""),f=a('');b.after(d).after(" ").after(f).hide();d.xeModuleSearch();d.bind("moduleSelect",function(a,d){f.val(d[0].browser_title+" ("+d[0].mid+")");b.val(d[0].module_srl)});b.val()&&a.exec_json("module.getModuleAdminModuleInfo",{module_srl:b.val()},function(a){a&&a.module_info&&f.val(a.module_info.browser_title+" ("+a.module_info.mid+")")})});return this}; -a(".module_search").xeModuleSearchHtml()}); -jQuery(function(a){var f=a('