diff --git a/adm/admin.head.php b/adm/admin.head.php index c1da43fc9..2db21b366 100644 --- a/adm/admin.head.php +++ b/adm/admin.head.php @@ -134,8 +134,8 @@ function imageview(id, w, h)
- - - + + +

diff --git a/adm/admin.tail.php b/adm/admin.tail.php index b3827e495..f0f644e74 100644 --- a/adm/admin.tail.php +++ b/adm/admin.tail.php @@ -94,24 +94,17 @@ $(function(){ } }); - function submenu_hide() { - $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); - } - - // 텍스트 리사이즈 카운트 쿠키있으면 실행 - var resize_act; - var text_resize_count = parseInt(get_cookie("ck_font_resize_count")); - if(!isNaN(text_resize_count)) { - if(text_resize_count > 0) - resize_act = "increase"; - else if(text_resize_count < 0) - resize_act = "decrease"; - - if(Math.abs(text_resize_count) > 0) - font_resize2("container", resize_act, Math.abs(text_resize_count)); + // 폰트 리사이즈 쿠키있으면 실행 + var font_resize_act = get_cookie("ck_font_resize_act"); + if(font_resize_act != "") { + font_resize("container", font_resize_act); } }); +function submenu_hide() { + $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); +} + function menu_rearrange(el) { var width = $("#gnb_1dul").width(); diff --git a/head.php b/head.php index 878d5039a..b94bb1cb8 100644 --- a/head.php +++ b/head.php @@ -168,7 +168,7 @@ if ($config['cf_include_head']) {
- - - + + +
\ No newline at end of file diff --git a/js/common.js b/js/common.js index dadbf203c..2edf6cae2 100644 --- a/js/common.js +++ b/js/common.js @@ -293,12 +293,6 @@ function doc_write(cont) document.write(cont); } -// php chr() 대응 -function chr(code) -{ - return String.fromCharCode(code); -} - var win_password_lost = function(href) { window.open(href, "win_password_lost", "left=50, top=50, width=617, height=330, scrollbars=1"); } @@ -404,19 +398,11 @@ function font_resize(id, act) { var $elements = $("#"+id+" *").not("select").not("option"); $elements.removeClass("applied"); - var count = parseInt(get_cookie("ck_font_resize_count")); - if(isNaN(count)) - count = 0; - // 엘리먼트의 기본 폰트사이즈 저장 if(!default_font_size_saved) { save_default_font_size($elements); } - // 크롬의 최소 폰트사이즈 버그로 작게는 한단계만 가능 - if(act == "decrease" && count == -1) - return; - $elements.each(function() { if($(this).hasClass("no_text_resize")) return true; @@ -426,54 +412,7 @@ function font_resize(id, act) } }); - // 텍스트 리사이즈 회수 쿠키에 기록 - if(act == "increase") - count++; - else - count--; - - set_cookie("ck_font_resize_count", count, 1, g4_cookie_domain); -} - - -/** - * 텍스트 기본사이즈 -**/ -function font_default(id) -{ - var act; - var count = parseInt(get_cookie("ck_font_resize_count")); - if(isNaN(count)) - count = 0; - - if(count > 0) { - act = "decrease"; - } else { - act = "increase"; - // 작게 후 기본 크기가 되지 않는 문제해결을 위해 추가 - set_cookie("ck_font_resize_count", 0, 1, g4_cookie_domain); - } - - for(i=0; i mx) { + $("textarea#wr_content[maxlength]").live("keyup change", function() { + var str = $(this).val() + var mx = parseInt($(this).attr("maxlength")) + if (str.length > mx) { $(this).val(str.substr(0, mx)); - return false; - } + return false; + } }); }); \ No newline at end of file diff --git a/js/jquery.menu.js b/js/jquery.menu.js index f992825c5..a84e0997f 100644 --- a/js/jquery.menu.js +++ b/js/jquery.menu.js @@ -69,24 +69,17 @@ $(function(){ } }); - function submenu_hide() { - $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); - } - - // 텍스트 리사이즈 카운트 쿠키있으면 실행 - var resize_act; - var text_resize_count = parseInt(get_cookie("ck_font_resize_count")); - if(!isNaN(text_resize_count)) { - if(text_resize_count > 0) - resize_act = "increase"; - else if(text_resize_count < 0) - resize_act = "decrease"; - - if(Math.abs(text_resize_count) > 0) - font_resize2("container", resize_act, Math.abs(text_resize_count)); + // 폰트 리사이즈 쿠키있으면 실행 + var font_resize_act = get_cookie("ck_font_resize_act"); + if(font_resize_act != "") { + font_resize("container", font_resize_act); } }); +function submenu_hide() { + $(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on"); +} + function menu_rearrange(el) { var width = $("#gnb_1dul").width();