From bd4d2aaa3114e8761fa3cf49478b3c7ac403e0a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EA=B2=BD=ED=9D=AC?= Date: Fri, 9 Aug 2013 10:31:24 +0900 Subject: [PATCH] Contacts API --- Contacts/contact_create.html | 8 ++++---- Contacts/contact_read.html | 4 ++-- Contacts/index.html | 8 ++++---- Contacts/js/app.js | 6 +----- 4 files changed, 11 insertions(+), 15 deletions(-) diff --git a/Contacts/contact_create.html b/Contacts/contact_create.html index d24312d..30aa056 100644 --- a/Contacts/contact_create.html +++ b/Contacts/contact_create.html @@ -3,7 +3,7 @@ Contacts + content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> @@ -16,7 +16,7 @@ -
+
back @@ -47,7 +47,7 @@

create

-
- +
+ \ No newline at end of file diff --git a/Contacts/contact_read.html b/Contacts/contact_read.html index 3d1c9d6..c755a0f 100644 --- a/Contacts/contact_read.html +++ b/Contacts/contact_read.html @@ -3,7 +3,7 @@ Contacts + content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> @@ -37,7 +37,7 @@

Contacts

Tel

- +

diff --git a/Contacts/index.html b/Contacts/index.html index a94cf62..083159e 100644 --- a/Contacts/index.html +++ b/Contacts/index.html @@ -16,7 +16,7 @@
- +
- + \ No newline at end of file diff --git a/Contacts/js/app.js b/Contacts/js/app.js index 3f0f712..22ab8bc 100644 --- a/Contacts/js/app.js +++ b/Contacts/js/app.js @@ -10,7 +10,6 @@ var app = function(){ } return document.getElementById(id); }, - addEvent: function(id, event, callBack){ var obj = $(id); if (obj.addEventListener) { @@ -20,11 +19,9 @@ var app = function(){ obj.attachEvent('on'+event, callBack, false); } }, - getURLParameter: function(name) { return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null }, - back: function(){ document.location = "index.html"; }, @@ -77,6 +74,7 @@ var app = function(){ * contact create */ contactCreate: function(event){ + event.preventDefault ? event.preventDefault() : event.returnValue = false; var name = $('name').value; @@ -208,10 +206,8 @@ var app = function(){ removeSearch.onerror = function() { console.warn("Uh! Something goes wrong, no result found!"); } - } } - } //-- return }();