26 lines
825 B
JavaScript
26 lines
825 B
JavaScript
|
|
/*
|
|
*
|
|
* NLIB 공통 JavaScript
|
|
*
|
|
*
|
|
*/
|
|
|
|
|
|
// 팝업으로 비밀번호를 입력받아서 콜백함수에 전달한다.
|
|
function fn_prompt_password(msg, callbackFucName) {
|
|
var thePrompt = window.open("", "_NLIB_POMPT_PASSWORD", "widht=100, height=100");
|
|
var theHTML = "";
|
|
|
|
theHTML += "<p>" + msg + "</p>";
|
|
theHTML += "<br/>";
|
|
theHTML += "비밀번호: <input type='text' id='thePass' placeholder='Enter Password...'/>";
|
|
theHTML += "<br />";
|
|
theHTML += "<input type='button' value='확인' id='thePromptOk' onclick='opener.parent." + callbackFucName + "("
|
|
+ "document.getElementById(\"thePass\").value); window.close();'/>";
|
|
theHTML += "<input type='button' value='취소' id='thePromptClose' onclick='window.close();'/>";
|
|
|
|
thePrompt.document.body.innerHTML = theHTML;
|
|
}
|
|
|