From 7d55ac064d4f328329baee4bc2ce7597f62e12fc Mon Sep 17 00:00:00 2001 From: inureyes Date: Mon, 6 Apr 2009 18:17:24 +0000 Subject: [PATCH] =?UTF-8?q?=20refs=20#1249=20=20=20*=20iphone.js=20=20?= =?UTF-8?q?=EC=97=90=20=ED=85=8D=EC=8A=A4=ED=8A=B8=ED=81=90=EB=B8=8C?= =?UTF-8?q?=EB=A5=BC=20=EC=9C=84=ED=95=B4=20=EC=B6=94=EA=B0=80=EB=90=9C=20?= =?UTF-8?q?=EB=B6=80=EB=B6=84=EC=9D=84=200.2=20beta1=20=EC=97=90=EB=8F=84?= =?UTF-8?q?=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/script/iphone/iphone.js | 61 +++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/resources/script/iphone/iphone.js b/resources/script/iphone/iphone.js index 7ae401a1c..8d2d3843b 100644 --- a/resources/script/iphone/iphone.js +++ b/resources/script/iphone/iphone.js @@ -440,3 +440,64 @@ function $(id) { return document.getElementById(id); } function ddd() { console.log.apply(console, arguments); } })(); + +// * adding **************************************************************************************** + +function looseURIEncode(string) { + string = string.replace(new RegExp("%", "g"), "%25"); + string = string.replace(new RegExp("\\?", "g"), "%3F"); + string = string.replace(new RegExp("#", "g"), "%23"); + return string; +} + +function secretToggleCheck(obj, entryId) { + var secretObj = document.getElementById("secret_" + entryId); + if(obj.getAttribute("toggled") == "true"){ + secretObj.value = 1; + } else { + secretObj.value = 0; + } +} + +function emailSaveToggleCheck(obj) { + var saveObj = document.getElementById("save"); + if(obj.getAttribute("toggled") == "true"){ + saveObj.value = 1; + } else { + saveObj.value = 0; + } +} + +function searchAction(flag){ + var qObj = document.getElementById('qString'); + var cObj = document.getElementById('clearButton'); + if(qObj.value.length > 0 && flag == false){ + qObj.value = ''; + cObj.style.display = 'none'; + window.scroll(0,0); + } +} + +function cancelAction(cObj){ + var qObj = document.getElementById('qString'); + if(qObj.value.length > 0){ + qObj.value = ''; + cObj.style.display = 'none'; + } +} + +function searchKeywordCheck(qObj){ + var cObj = document.getElementById('clearButton'); + if(qObj.value.length > 0){ + cObj.style.display = 'block'; + }else{ + cObj.style.display = 'none'; + } +} + +function closeKeypad(){ + var searchButton = document.getElementById("searchButton"); + if (searchButton != null){ + searchButton.focus(); + } +} \ No newline at end of file