From 0d357d853339d986d37f79d09d3851d7188898fd Mon Sep 17 00:00:00 2001
From: Piotr Dabrowski
Date: Thu, 11 Jul 2013 10:18:19 +0200
Subject: [PATCH] [ContactsExchanger] updated ContactsExchanger sources
Change-Id: Idd0eed085d3501a42e7954da1871b0e661438c0f
---
js/app.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
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");
--
2.7.4