Skip to content

Commit

Permalink
refs #1249
Browse files Browse the repository at this point in the history
  * iphone.js  에 텍스트큐브를 위해 추가된 부분을 0.2 beta1 에도 반영
  • Loading branch information
inureyes committed Apr 6, 2009
1 parent 2b660f8 commit 7d55ac0
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions resources/script/iphone/iphone.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 7d55ac0

Please # to comment.