From 437758a6076252475c6a5c85cd9e81a577866882 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 12 Mar 2013 10:27:08 +0900 Subject: [PATCH] =?UTF-8?q?#157=20=EC=97=90=20=EB=94=B0=EB=A5=B8=20?= =?UTF-8?q?=EC=B1=85=EA=B0=88=ED=94=BC=20=EC=9D=B4=EB=8F=99=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/wrest.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/js/wrest.js b/js/wrest.js index c0070ae4e..6864346b2 100644 --- a/js/wrest.js +++ b/js/wrest.js @@ -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();