#157 에 따른 책갈피 이동 코드 추가
This commit is contained in:
13
js/wrest.js
13
js/wrest.js
@ -323,6 +323,19 @@ function wrestSubmit()
|
|||||||
alert(wrestMsg);
|
alert(wrestMsg);
|
||||||
|
|
||||||
if (wrestFld.style.display != "none") {
|
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;
|
//wrestFld.style.backgroundColor = wrestFldBackColor;
|
||||||
if (typeof(wrestFld.select) != "undefined")
|
if (typeof(wrestFld.select) != "undefined")
|
||||||
wrestFld.select();
|
wrestFld.select();
|
||||||
|
|||||||
Reference in New Issue
Block a user