diff --git a/modules/admin/tpl/js/admin.js b/modules/admin/tpl/js/admin.js index 8415b35a4..990fb4428 100644 --- a/modules/admin/tpl/js/admin.js +++ b/modules/admin/tpl/js/admin.js @@ -1240,7 +1240,7 @@ jQuery(function($){ $(this).append($sTog); $sTog.click(function(){ var $t = $(this); - var $sTogObj = $t.parent().nextUntil('.h2, .h3'); + var $sTogObj = $t.parent().nextUntil('.h2, .h3').not('.langEdit, .tgContent, .modal'); if($t.parent().next().is(':hidden')){ $t.find('i').attr('class','icon-chevron-up'); $sTogObj.slideDown(200); diff --git a/modules/admin/tpl/js/admin.min.js b/modules/admin/tpl/js/admin.min.js index 7904ea15a..181fcab04 100644 --- a/modules/admin/tpl/js/admin.min.js +++ b/modules/admin/tpl/js/admin.min.js @@ -1 +1 @@ -jQuery(function(d){var a=27;d(".form li").find('>input:text:not(".notmulti"),>input:password,>textarea').filter('input[value!=""],textarea:not(:empty)').prev("label").css("visibility","hidden").end().end().prev("label").addClass("overlap").css({top:"15px",left:"5px"}).next().focus(function(){var e=d(this).prev().stop().animate({opacity:0,left:"25px"},"fast",function(){e.css("visibility","hidden")})}).blur(function(){var f=d(this),e;if(d.trim(f.val())==""){e=f.prev().stop().css("visibility","visible").animate({opacity:1,left:"5px"},"fast")}}).end().parent().css("position","relative");var b=d("input:radio+label,input:checkbox+label"),c=b.prev("input");c.change(function(){var e=d(this).attr("name");c.filter(function(){return this.name==e}).next("label").css("font-weight","normal").end().filter(":checked").next("label").css("font-weight","bold").end()}).change();d(".form th>input:checkbox").change(function(){var f=d(this),e=f.data("name");f.closest("table").find("input:checkbox").filter(function(){var g=d(this);return !g.prop("disabled")&&((g.attr("name")==e)||(g.data("name")==e))}).prop("checked",f.prop("checked")).end().end().trigger("update.checkbox",[e,this.checked])});d.fn.xePagination=function(){this.not(".xe-pagination").addClass("xe-pagination").find("span.tgContent").css("whiteSpace","nowrap").end().find("a.tgAnchor").each(function(e){var f=d(this);f.after(d(f.attr("href")))}).end();return this};d(".pagination").xePagination();d(".portlet .action").css({display:"none",position:"absolute"}).parent().mouseleave(function(){d(this).find(">.action").fadeOut(100)}).mouseenter(function(){d(this).find(">.action").fadeIn(100)}).focusin(function(){d(this).mouseenter()}).focusout(function(){var e=d(this),f;clearTimeout(e.data("timer"));f=setTimeout(function(){if(!e.find(":focus").length){e.mouseleave()}},10);e.data("timer",f)});d(window).resize(function(){if(d(document).width()<1300){d(".dashboard>.section>br").remove();d(".dashboard>.section>.portlet:odd").after('
')}else{d(".dashboard>.section>br").remove();d(".dashboard>.section>.portlet:eq(2),.dashboard>.section>.portlet:eq(5)").after('
')}});d(window).resize();d(".header>.siteTool>a.i").bind("before-open.tc",function(){d(this).addClass("active").next("div.tgContent").find(">.section:gt(0)").hide().end().find(">.btnArea>button").show()}).bind("after-close.tc",function(){d(this).removeClass("active")}).next("#siteMapList").find(">.section:last").after('

').find("+p>button").click(function(){d(this).hide().parent().prevAll(".section").show()});d.fn.xeMask=function(){this.each(function(){var e=d(this),g=e.text();var f=/^([\w\-\.]+?)@(([\w-]+\.)+[a-z]{2,})$/ig;if(f.test(g)){e.html(g.replace(/(@.+)$/,'...$1')).find(">.ellipsis").css({position:"absolute",zIndex:1}).hover(function(){d(this).next(".cover").mouseover()},function(){d(this).next(".cover").mouseout()}).end().find(">.cover").css({zIndex:2,opacity:0}).hover(function(){d(this).css("opacity",1).prev("span").css("visibility","hidden")},function(){d(this).css("opacity",0).prev("span").css("visibility","visible")}).end()}})};d(".masked").xeMask()});jQuery(function(a){a.fn.xeMenu=function(){this.attr("role","navigation").find(">.nav>li").attr("role","menuitem").find(">ul").css("height","0").end().filter(":has(>ul)").attr("aria-haspopup","true").end().end().find(">.nav").mouseover(function(){a(this).parent(".gnb").addClass("active").end().find(">li>ul").css("height","auto").end()}).mouseleave(function(){a(this).parent(".gnb").removeClass("active").end().find(">li>ul").css("height","0").end()}).focusout(function(){var b=a(this);setTimeout(function(){if(!b.find(":focus").length){b.mouseleave()}},1)}).delegate("a",{focus:function(){a(this).mouseover()}});this.find(">.bmk").removeClass("active").mouseover(function(){a(this).addClass("active")}).mouseleave(function(){a(this).removeClass("active")}).focusout(function(){var b=a(this);setTimeout(function(){if(!b.find(":focus").length){b.mouseleave()}},1)}).delegate("a",{focus:function(){a(this).mouseover()}})};a("div.gnb").xeMenu();a(".gnb>.mnv").change(function(){window.location.href=a(this).find("option:selected").val()})});jQuery(function(a){var b=27;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),c,e,d;c=a(f.attr("href"));if(!c.parent("body").length){e=a('');e.click(function(){c.data("anchor").trigger("close.mw")});c.prepend('').append('').find(">.fg").prepend(e).append(e.clone(true)).end().appendTo("body")}c.data("anchor",f);if(c.data("state")=="showing"){f.trigger("close.mw")}else{f.trigger("open.mw")}return false}).bind("open.mw",function(){var f=a(this),c,d,e;c=a.Event("before-open.mw");f.trigger(c);if(c.isDefaultPrevented()){return false}d=a(f.attr("href"));e=f.data("duration")||"fast";d.data("state","showing");a("html,body").addClass("modalContainer");function g(){f.trigger("after-open.mw")}a(document).bind("keydown.mw",function(h){if(h.which==b){f.trigger("close.mw");return false}});d.fadeIn(e,g).find(">.bg").height(a(document).height()).end().find("button.modalClose:first").focus()}).bind("close.mw",function(){var f=a(this),c,d,e;c=a.Event("before-close.mw");f.trigger(c);if(c.isDefaultPrevented()){return false}d=a(f.attr("href"));e=f.data("duration")||"fast";d.data("state","hiding");a("html,body").removeClass("modalContainer");function g(){f.trigger("after-close.mw")}d.fadeOut(e,g);f.focus()})};a("a.modalAnchor").xeModalWindow();a("div.modal").addClass("x").hide()});jQuery(function(b){var a=false;var c=27;b.fn.xeContentToggler=function(){this.not(".xe-content-toggler").addClass("xe-content-toggler").each(function(){var d=b(this);$layer=b(d.attr("href"));$layer.hide().not(".xe-toggling-content").addClass("xe-toggling-content").mousedown(function(e){a=true}).focusout(function(e){setTimeout(function(){if(!a&&!$layer.find(":focus").length&&$layer.data("state")=="showing"){d.trigger("close.tc")}a=false},1)})}).click(function(){var e=b(this),d;d=b(e.attr("href"));d.data("anchor",e);if(d.data("state")=="showing"){e.trigger("close.tc")}else{e.trigger("open.tc")}return false}).bind("open.tc",function(){var h=b(this),e,f,g;e=b(h.attr("href"));f=h.data("effect");g=h.data("duration")||"fast";e.data("state","showing");h.trigger("before-open.tc");a=false;b(document).unbind("mousedown.tc keydown.tc").bind("mousedown.tc keydown.tc",function(j){if(j){if(j.type=="keydown"&&j.which!=c){return true}if(j.type=="mousedown"){var k=b(j.target);if(k.is("html,.tgAnchor,.tgContent")||e.has(k).length){return true}}}h.trigger("close.tc");return false});function i(){h.trigger("after-open.tc")}switch(f){case"slide":e.slideDown(g,i);break;case"slide-h":var d=e.css({"overflow-x":"",width:""}).width();e.show().css({"overflow-x":"hidden",width:"0px"}).animate({width:d},g,function(){e.css({"overflow-x":"",width:""});i()});break;case"fade":e.fadeIn(g,i);break;default:e.show();h.trigger("after-open.tc")}}).bind("close.tc",function(){var g=b(this),d,e,f;b(document).unbind("mousedown.tc keydown.tc");d=b(g.attr("href"));e=g.data("effect");f=g.data("duration")||"fast";d.data("state","hiding");g.trigger("before-close.tc");function h(){g.trigger("after-close.tc")}switch(e){case"slide":d.slideUp(f,h);break;case"slide-h":d.animate({width:0},f,function(){d.hide();h()});break;case"fade":d.fadeOut(f,h);break;default:d.hide();g.trigger("after-close.tc")}});return this};b("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 c,b,d;c=a(this);b=a(c.attr("href")).find(">ul");d=c.prev("input:text").val();function e(h){var k,g=h.site_list,f,j;b.empty();c.closest(".modulefinder").find(".moduleList,.moduleIdList").attr("disabled","disabled");if(h.error||!a.isArray(g)){c.trigger("close.tc");return}for(f=0,j=g.length;f").appendTo(b);a('');b(this).append(c);c.click(function(){var e=b(this);var d=e.parent().nextUntil(".h2, .h3");if(e.parent().next().is(":hidden")){e.find("i").attr("class","icon-chevron-up");d.slideDown(200)}else{e.find("i").attr("class","icon-chevron-down");d.slideUp(200)}})})}); \ No newline at end of file +jQuery(function(d){var a=27;d(".form li").find('>input:text:not(".notmulti"),>input:password,>textarea').filter('input[value!=""],textarea:not(:empty)').prev("label").css("visibility","hidden").end().end().prev("label").addClass("overlap").css({top:"15px",left:"5px"}).next().focus(function(){var e=d(this).prev().stop().animate({opacity:0,left:"25px"},"fast",function(){e.css("visibility","hidden")})}).blur(function(){var f=d(this),e;if(d.trim(f.val())==""){e=f.prev().stop().css("visibility","visible").animate({opacity:1,left:"5px"},"fast")}}).end().parent().css("position","relative");var b=d("input:radio+label,input:checkbox+label"),c=b.prev("input");c.change(function(){var e=d(this).attr("name");c.filter(function(){return this.name==e}).next("label").css("font-weight","normal").end().filter(":checked").next("label").css("font-weight","bold").end()}).change();d(".form th>input:checkbox").change(function(){var f=d(this),e=f.data("name");f.closest("table").find("input:checkbox").filter(function(){var g=d(this);return !g.prop("disabled")&&((g.attr("name")==e)||(g.data("name")==e))}).prop("checked",f.prop("checked")).end().end().trigger("update.checkbox",[e,this.checked])});d.fn.xePagination=function(){this.not(".xe-pagination").addClass("xe-pagination").find("span.tgContent").css("whiteSpace","nowrap").end().find("a.tgAnchor").each(function(e){var f=d(this);f.after(d(f.attr("href")))}).end();return this};d(".pagination").xePagination();d(".portlet .action").css({display:"none",position:"absolute"}).parent().mouseleave(function(){d(this).find(">.action").fadeOut(100)}).mouseenter(function(){d(this).find(">.action").fadeIn(100)}).focusin(function(){d(this).mouseenter()}).focusout(function(){var e=d(this),f;clearTimeout(e.data("timer"));f=setTimeout(function(){if(!e.find(":focus").length){e.mouseleave()}},10);e.data("timer",f)});d(window).resize(function(){if(d(document).width()<1300){d(".dashboard>.section>br").remove();d(".dashboard>.section>.portlet:odd").after('
')}else{d(".dashboard>.section>br").remove();d(".dashboard>.section>.portlet:eq(2),.dashboard>.section>.portlet:eq(5)").after('
')}});d(window).resize();d(".header>.siteTool>a.i").bind("before-open.tc",function(){d(this).addClass("active").next("div.tgContent").find(">.section:gt(0)").hide().end().find(">.btnArea>button").show()}).bind("after-close.tc",function(){d(this).removeClass("active")}).next("#siteMapList").find(">.section:last").after('

').find("+p>button").click(function(){d(this).hide().parent().prevAll(".section").show()});d.fn.xeMask=function(){this.each(function(){var e=d(this),g=e.text();var f=/^([\w\-\.]+?)@(([\w-]+\.)+[a-z]{2,})$/ig;if(f.test(g)){e.html(g.replace(/(@.+)$/,'...$1')).find(">.ellipsis").css({position:"absolute",zIndex:1}).hover(function(){d(this).next(".cover").mouseover()},function(){d(this).next(".cover").mouseout()}).end().find(">.cover").css({zIndex:2,opacity:0}).hover(function(){d(this).css("opacity",1).prev("span").css("visibility","hidden")},function(){d(this).css("opacity",0).prev("span").css("visibility","visible")}).end()}})};d(".masked").xeMask()});jQuery(function(a){a.fn.xeMenu=function(){this.attr("role","navigation").find(">.nav>li").attr("role","menuitem").find(">ul").css("height","0").end().filter(":has(>ul)").attr("aria-haspopup","true").end().end().find(">.nav").mouseover(function(){a(this).parent(".gnb").addClass("active").end().find(">li>ul").css("height","auto").end()}).mouseleave(function(){a(this).parent(".gnb").removeClass("active").end().find(">li>ul").css("height","0").end()}).focusout(function(){var b=a(this);setTimeout(function(){if(!b.find(":focus").length){b.mouseleave()}},1)}).delegate("a",{focus:function(){a(this).mouseover()}});this.find(">.bmk").removeClass("active").mouseover(function(){a(this).addClass("active")}).mouseleave(function(){a(this).removeClass("active")}).focusout(function(){var b=a(this);setTimeout(function(){if(!b.find(":focus").length){b.mouseleave()}},1)}).delegate("a",{focus:function(){a(this).mouseover()}})};a("div.gnb").xeMenu();a(".gnb>.mnv").change(function(){window.location.href=a(this).find("option:selected").val()})});jQuery(function(a){var b=27;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),c,e,d;c=a(f.attr("href"));if(!c.parent("body").length){e=a('');e.click(function(){c.data("anchor").trigger("close.mw")});c.prepend('').append('').find(">.fg").prepend(e).append(e.clone(true)).end().appendTo("body")}c.data("anchor",f);if(c.data("state")=="showing"){f.trigger("close.mw")}else{f.trigger("open.mw")}return false}).bind("open.mw",function(){var f=a(this),c,d,e;c=a.Event("before-open.mw");f.trigger(c);if(c.isDefaultPrevented()){return false}d=a(f.attr("href"));e=f.data("duration")||"fast";d.data("state","showing");a("html,body").addClass("modalContainer");function g(){f.trigger("after-open.mw")}a(document).bind("keydown.mw",function(h){if(h.which==b){f.trigger("close.mw");return false}});d.fadeIn(e,g).find(">.bg").height(a(document).height()).end().find("button.modalClose:first").focus()}).bind("close.mw",function(){var f=a(this),c,d,e;c=a.Event("before-close.mw");f.trigger(c);if(c.isDefaultPrevented()){return false}d=a(f.attr("href"));e=f.data("duration")||"fast";d.data("state","hiding");a("html,body").removeClass("modalContainer");function g(){f.trigger("after-close.mw")}d.fadeOut(e,g);f.focus()})};a("a.modalAnchor").xeModalWindow();a("div.modal").addClass("x").hide()});jQuery(function(b){var a=false;var c=27;b.fn.xeContentToggler=function(){this.not(".xe-content-toggler").addClass("xe-content-toggler").each(function(){var d=b(this);$layer=b(d.attr("href"));$layer.hide().not(".xe-toggling-content").addClass("xe-toggling-content").mousedown(function(e){a=true}).focusout(function(e){setTimeout(function(){if(!a&&!$layer.find(":focus").length&&$layer.data("state")=="showing"){d.trigger("close.tc")}a=false},1)})}).click(function(){var e=b(this),d;d=b(e.attr("href"));d.data("anchor",e);if(d.data("state")=="showing"){e.trigger("close.tc")}else{e.trigger("open.tc")}return false}).bind("open.tc",function(){var h=b(this),e,f,g;e=b(h.attr("href"));f=h.data("effect");g=h.data("duration")||"fast";e.data("state","showing");h.trigger("before-open.tc");a=false;b(document).unbind("mousedown.tc keydown.tc").bind("mousedown.tc keydown.tc",function(j){if(j){if(j.type=="keydown"&&j.which!=c){return true}if(j.type=="mousedown"){var k=b(j.target);if(k.is("html,.tgAnchor,.tgContent")||e.has(k).length){return true}}}h.trigger("close.tc");return false});function i(){h.trigger("after-open.tc")}switch(f){case"slide":e.slideDown(g,i);break;case"slide-h":var d=e.css({"overflow-x":"",width:""}).width();e.show().css({"overflow-x":"hidden",width:"0px"}).animate({width:d},g,function(){e.css({"overflow-x":"",width:""});i()});break;case"fade":e.fadeIn(g,i);break;default:e.show();h.trigger("after-open.tc")}}).bind("close.tc",function(){var g=b(this),d,e,f;b(document).unbind("mousedown.tc keydown.tc");d=b(g.attr("href"));e=g.data("effect");f=g.data("duration")||"fast";d.data("state","hiding");g.trigger("before-close.tc");function h(){g.trigger("after-close.tc")}switch(e){case"slide":d.slideUp(f,h);break;case"slide-h":d.animate({width:0},f,function(){d.hide();h()});break;case"fade":d.fadeOut(f,h);break;default:d.hide();g.trigger("after-close.tc")}});return this};b("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 c,b,d;c=a(this);b=a(c.attr("href")).find(">ul");d=c.prev("input:text").val();function e(h){var k,g=h.site_list,f,j;b.empty();c.closest(".modulefinder").find(".moduleList,.moduleIdList").attr("disabled","disabled");if(h.error||!a.isArray(g)){c.trigger("close.tc");return}for(f=0,j=g.length;f").appendTo(b);a('
');b(this).append(c);c.click(function(){var e=b(this);var d=e.parent().nextUntil(".h2, .h3").not(".langEdit, .tgContent, .modal");if(e.parent().next().is(":hidden")){e.find("i").attr("class","icon-chevron-up");d.slideDown(200)}else{e.find("i").attr("class","icon-chevron-down");d.slideUp(200)}})})}); \ No newline at end of file