From 32a638d68f492c80619354d27fc57611308261e1 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 12 Mar 2013 13:18:46 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=EC=9E=90=EB=8F=99=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8=20confirm=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/outlogin/basic/outlogin.skin.1.php | 40 ++++++++++++++----------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/skin/outlogin/basic/outlogin.skin.1.php b/skin/outlogin/basic/outlogin.skin.1.php index 38ad196d7..f3e69c17a 100644 --- a/skin/outlogin/basic/outlogin.skin.1.php +++ b/skin/outlogin/basic/outlogin.skin.1.php @@ -33,25 +33,29 @@ $omi_label = $('#ol_idlabel'); $omi_label.addClass('ol_idlabel'); $omp_label = $('#ol_pwlabel'); $omp_label.addClass('ol_pwlabel'); -$omi.focus(function() { - $omi_label.css('visibility','hidden'); -}); -$omp.focus(function() { - $omp_label.css('visibility','hidden'); -}); -$omi.blur(function() { - $this = $(this); - if($this.attr('id') == "ol_id" && $this.attr('value') == "") $omi_label.css('visibility','visible'); -}); -$omp.blur(function() { - $this = $(this); - if($this.attr('id') == "ol_pw" && $this.attr('value') == "") $omp_label.css('visibility','visible'); -}); -$("#auto_login").click(function(){ - if (this.checked) { - this.checked = confirm("자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?"); - } +$(function() { + $omi.focus(function() { + $omi_label.css('visibility','hidden'); + }); + $omp.focus(function() { + $omp_label.css('visibility','hidden'); + }); + $omi.blur(function() { + $this = $(this); + if($this.attr('id') == "ol_id" && $this.attr('value') == "") $omi_label.css('visibility','visible'); + }); + $omp.blur(function() { + $this = $(this); + if($this.attr('id') == "ol_pw" && $this.attr('value') == "") $omp_label.css('visibility','visible'); + }); + + $("#auto_login").click(function(){ + if ($(this).is(":checked")) { + if(!confirm("자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?")) + return false; + } + }); }); function fhead_submit(f) From d282e3639a9c210aac9afbe0b56b29ff98bc94f4 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 12 Mar 2013 13:49:12 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=EA=B0=80=EC=83=81=EC=BB=A4=EC=84=9C=20?= =?UTF-8?q?=EC=9D=B4=EB=8F=99=EC=9D=84=20=EC=9C=84=ED=95=9C=20=EC=8A=A4?= =?UTF-8?q?=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/wrest.js | 18 +++++++++--------- skin/outlogin/basic/outlogin.skin.1.php | 2 -- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/js/wrest.js b/js/wrest.js index a54c828ad..c8a32fd1d 100644 --- a/js/wrest.js +++ b/js/wrest.js @@ -324,16 +324,16 @@ function wrestSubmit() if (wrestFld.style.display != "none") { var id = wrestFld.getAttribute("id"); - var msg_el = document.getElementById(id+"_msg"); - var new_href; - var curr_href = document.location.href.replace(/#.+$/, ""); - if(msg_el != null) { - msg_el.innerText = wrestMsg; - new_href = curr_href+"#"+id+"_msg"; - } else { - new_href = curr_href+"#"+id; - } + // 오류메세지를 위한 element 추가 + var msg_el = document.createElement("strong"); + msg_el.id = "msg_"+id; + msg_el.className = "msg_sound_only"; + msg_el.innerHTML = wrestMsg; + wrestFld.parentNode.insertBefore(msg_el, wrestFld); + + var new_href = document.location.href.replace(/#.+$/, "")+"#msg_"+id; + document.location.href = new_href; //wrestFld.style.backgroundColor = wrestFldBackColor; diff --git a/skin/outlogin/basic/outlogin.skin.1.php b/skin/outlogin/basic/outlogin.skin.1.php index f3e69c17a..abffe6889 100644 --- a/skin/outlogin/basic/outlogin.skin.1.php +++ b/skin/outlogin/basic/outlogin.skin.1.php @@ -9,9 +9,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
- - From 0e28d47c2d4a2bb96ed18af3818550f180de9843 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 12 Mar 2013 13:50:08 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=EA=B0=80=EC=83=81=EC=BB=A4=EC=84=9C=20?= =?UTF-8?q?=EC=9D=B4=EB=8F=99=EC=9D=84=20=EC=9C=84=ED=95=9C=20=EC=8A=A4?= =?UTF-8?q?=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/wrest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/wrest.js b/js/wrest.js index c8a32fd1d..106685deb 100644 --- a/js/wrest.js +++ b/js/wrest.js @@ -332,7 +332,7 @@ function wrestSubmit() msg_el.innerHTML = wrestMsg; wrestFld.parentNode.insertBefore(msg_el, wrestFld); - var new_href = document.location.href.replace(/#.+$/, "")+"#msg_"+id; + var new_href = document.location.href.replace(/#msg.+$/, "")+"#msg_"+id; document.location.href = new_href;