Merge branch 'master' of github.com:gnuboard/g4s
This commit is contained in:
18
js/wrest.js
18
js/wrest.js
@ -324,16 +324,16 @@ function wrestSubmit()
|
|||||||
|
|
||||||
if (wrestFld.style.display != "none") {
|
if (wrestFld.style.display != "none") {
|
||||||
var id = wrestFld.getAttribute("id");
|
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) {
|
// 오류메세지를 위한 element 추가
|
||||||
msg_el.innerText = wrestMsg;
|
var msg_el = document.createElement("strong");
|
||||||
new_href = curr_href+"#"+id+"_msg";
|
msg_el.id = "msg_"+id;
|
||||||
} else {
|
msg_el.className = "msg_sound_only";
|
||||||
new_href = curr_href+"#"+id;
|
msg_el.innerHTML = wrestMsg;
|
||||||
}
|
wrestFld.parentNode.insertBefore(msg_el, wrestFld);
|
||||||
|
|
||||||
|
var new_href = document.location.href.replace(/#msg.+$/, "")+"#msg_"+id;
|
||||||
|
|
||||||
document.location.href = new_href;
|
document.location.href = new_href;
|
||||||
|
|
||||||
//wrestFld.style.backgroundColor = wrestFldBackColor;
|
//wrestFld.style.backgroundColor = wrestFldBackColor;
|
||||||
|
|||||||
@ -31,25 +31,29 @@ $omi_label = $('#ol_idlabel');
|
|||||||
$omi_label.addClass('ol_idlabel');
|
$omi_label.addClass('ol_idlabel');
|
||||||
$omp_label = $('#ol_pwlabel');
|
$omp_label = $('#ol_pwlabel');
|
||||||
$omp_label.addClass('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(){
|
$(function() {
|
||||||
if (this.checked) {
|
$omi.focus(function() {
|
||||||
this.checked = confirm("자동로그인을 사용하시면 다음부터 회원아이디와 패스워드를 입력하실 필요가 없습니다.\n\n공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?");
|
$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)
|
function fhead_submit(f)
|
||||||
|
|||||||
Reference in New Issue
Block a user