diff --git a/modules/admin/tpl/js/admin.js b/modules/admin/tpl/js/admin.js
index 759b2bcc7..3a1eae58f 100644
--- a/modules/admin/tpl/js/admin.js
+++ b/modules/admin/tpl/js/admin.js
@@ -92,10 +92,22 @@ jQuery(function($){
return false;
});
+// #content reflow
+ function reflow(){ // Browser bug fix & resize height
+ var $xBody = $('.x>.xin>.body');
+ var $xGnb = $xBody.find('>.gnb');
+ var $xContent = $xBody.children('#content.content');
+ $xContent.width('99.99%');
+ setTimeout(function(){
+ $xContent.removeAttr('style');
+ if($xGnb.height() > $xContent.height()){
+ $xContent.height($xGnb.height());
+ }
+ }, 100);
+ }
// GNB
$.fn.gnb = function(){
var $xBody = $('.x>.xin>.body');
- var $xContent = $xBody.children('#content.content');
var $xGnb = $xBody.find('>.gnb');
var $xGnb_li = $xGnb.find('>ul>li');
// Add icon
@@ -107,16 +119,6 @@ jQuery(function($){
var parentIndex = $xGnb_li.find('>ul>li.active_').closest('li.active').attr('data-index');
$xGnb_li.find('>ul>li.active_').clone().addClass('active').attr('data-index', parentIndex).prependTo('#gnbNav').find('>a').prepend('');
// Index
- // GNB Hover toggle
- function reflow(){ // Browser bug fix & resize height
- $xContent.width('99.99%');
- setTimeout(function(){
- $xContent.removeAttr('style');
- if($xGnb.height() > $xContent.height()){
- $xContent.height($xGnb.height());
- }
- }, 100);
- }
// GNB Click toggle
$xGnb_li.find('ul').prev('a')
.bind('click focus', function(){
diff --git a/modules/admin/tpl/js/admin.min.js b/modules/admin/tpl/js/admin.min.js
index c30c704ea..2b5142174 100644
--- a/modules/admin/tpl/js/admin.min.js
+++ b/modules/admin/tpl/js/admin.min.js
@@ -1 +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 b=new Array();b.module_name=a;exec_xml("install","procInstallAdminInstall",b,completeInstallModule);showWaitingFogLayer();}function doUpdateModule(a){var b=new Array();b.module_name=a;exec_xml("install","procInstallAdminUpdate",b,completeInstallModule);showWaitingFogLayer();}function completeInstallModule(a){alert(a.message);location.reload();}jQuery(function(a){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 f=a(this);var e=a(f.attr("data-toggle"));var g="a,input,button,textarea,select";e.toggle();if(e.is(":visible")&&!e.find(g).length){e.attr("tabindex","0").not(":disabled").focus();}else{if(e.is(":visible")&&e.find(g).length){e.find(g).not(":disabled").eq(0).focus();}else{f.focus();}}return false;});a(document.body).on("click",".x [data-show]",function(){a(a(this).attr("data-show")).show().attr("tabindex","0").focus();return false;});a(document.body).on("click",".x [data-hide]",function(){var e=a(this);a(e.attr("data-hide")).hide();e.focus();return false;});a.fn.xeTabbable=function(){a(this).each(function(){var e=a(this);e.find(">.x_nav-tabs>li>a").each(function(f){a(this).attr("data-index",f+1);});e.find(">.x_tab-content>.x_tab-pane").each(function(f){a(this).attr("data-index",f+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 e=a(this);e.parent("li").addClass("x_active").siblings().removeClass("x_active");e.closest(".x_nav-tabs").next(".x_tab-content").find(">.x_tab-pane").eq(e.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 false;});a.fn.gnb=function(){var k=a(".x>.xin>.body");var e=k.children("#content.content");var g=k.find(">.gnb");var j=g.find(">ul>li");j.find(">a").prepend("");j.each(function(l){a(this).attr("data-index",l+1);});var h=j.find(">ul>li.active_").closest("li.active").attr("data-index");j.find(">ul>li.active_").clone().addClass("active").attr("data-index",h).prependTo("#gnbNav").find(">a").prepend("");function f(){e.width("99.99%");setTimeout(function(){e.removeAttr("style");if(g.height()>e.height()){e.height(g.height());}},100);}j.find("ul").prev("a").bind("click focus",function(){var l=a(this);l.parent("li").addClass("open").siblings("li").removeClass("open");k.removeClass("wide");f();return false;});g.find('>a[href="#gnbNav"]').click(function(){a(this).parent(".gnb").toggleClass("open");k.toggleClass("wide");f();return false;});g.prepend('').append('');g.find(">.close").focus(function(){k.addClass("wide");f();});g.find(".exMenu>button").click(function(){a("#gnbNav").toggleClass("ex");});};a(".gnb").gnb();a(".x #lang").mouseleave(function(){a(this).hide();}).focusout(function(){var e=a(this);setTimeout(function(){if(!e.find("a:focus").length){e.mouseleave();}},500);});a('.x th>input[type="checkbox"]').change(function(){var f=a(this),e=f.data("name");f.closest("table").find("input:checkbox").filter(function(){var g=a(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]);});a(document.body).on("click",".x .x_pagination .x_disabled, .x .x_pagination .x_active",function(){return false;});if(a(".section").length>1){var b=a(".x .section").find(">h1:first");b.append('');a(".x .section.collapse>h1>.snToggle").removeClass("x_icon-chevron-up").addClass("x_icon-chevron-down");b.find(">.snToggle").click(function(){var f=a(this);var e=f.closest(".section");if(!e.hasClass("collapse")){e.addClass("collapse").children("h1:first").siblings().hide();f.removeClass("x_icon-chevron-up").addClass("x_icon-chevron-down");}else{e.removeClass("collapse").children("h1:first").siblings().show();f.removeClass("x_icon-chevron-down").addClass("x_icon-chevron-up");}reflow();});}var d=a(".x .x_alert");d.prepend('');d.children(".x_close").click(function(){a(this).parent(".x_alert").hide();});a(".x .x_btn").click(function(){if(a(this).hasClass("x_disabled")){return false;}});a.fn.vr=function(){this.each(function(){var e=a(this);if(e.text()=="|"){e.addClass("vr").filter(":first-child, :last-child").remove();}});};a(".x i").vr();a.fn.labelMaker=function(){this.each(function(g){g=g+1;var j=a(this);var f="input, textarea, select";var e=":radio, :checkbox";var k="[id]";var h="i"+g;if(j.next(f).filter(k).not(e).length){j.attr("for",j.next().attr("id"));}else{if(j.next(f).not(k).not(e).length){j.attr("for",h).next().attr("id",h);}else{if(j.prev(e).filter(k).length){j.attr("for",j.prev().attr("id"));}else{if(j.prev(e).not(k).length){j.attr("for",h).prev().attr("id",h);}else{if(j.children(f).filter(k).length){j.attr("for",j.children(f).filter(k).eq(0).attr("id"));}else{if(j.children(f).not(k).length){j.attr("for",h).children(f).not(k).eq(0).attr("id",h);}}}}}}});};a("label:not([for])").labelMaker();a.fn.checkToggle=function(){function e(){setTimeout(function(){a(":checked").parent("label").addClass("checked");a(':not(":checked")').parent("label").removeClass("checked");},0);}this.change(e);e();};a(":radio, :checkbox").checkToggle();a.fn.fileTypeOverlap=function(){this.each(function(){var f=a(this);f.wrap('').before('