#157 에 따른 책갈피 이동 코드 추가

This commit is contained in:
chicpro
2013-03-12 10:27:08 +09:00
parent a8eb1b657b
commit 437758a607

View File

@ -323,6 +323,19 @@ function wrestSubmit()
alert(wrestMsg);
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;
var new_href = curr_href+"#"+id+"_msg";
} else {
var new_href = curr_href+"#"+id;
}
document.location.href = new_href;
//wrestFld.style.backgroundColor = wrestFldBackColor;
if (typeof(wrestFld.select) != "undefined")
wrestFld.select();