From: Piotr Dabrowski
Date: Thu, 11 Jul 2013 08:18:19 +0000 (+0200)
Subject: [ContactsExchanger] updated ContactsExchanger sources
X-Git-Tag: 2.2_release~3
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d357d853339d986d37f79d09d3851d7188898fd;p=samples%2Fweb%2FContactsExchanger.git
[ContactsExchanger] updated ContactsExchanger sources
Change-Id: Idd0eed085d3501a42e7954da1871b0e661438c0f
---
diff --git a/js/app.js b/js/app.js
index 9e1b8ad..124510f 100644
--- a/js/app.js
+++ b/js/app.js
@@ -80,15 +80,16 @@ var app = null;
oncontactsremoved: function(ids) {
// Refresh localStorage if default contact was deleted
if (ids.indexOf(localStorage.id) >= 0) {
- alert("Your default contact has been removed. Please choose another one.");
// Reset localStorage
- localStorage.started = undefined;
+ localStorage.clear();
self.started = false;
// Load start page with temporary content
self.ui.moveToStartPage();
self.ui.loadTemporaryContent();
+
+ alert("Your default contact has been removed. Please choose another one.");
} else {
// Refresh if choose page active
self.ui.refreshIfActivePage("choose");