From e9f919d2ab387301879c54f408d75988908915d0 Mon Sep 17 00:00:00 2001 From: Piotr Dabrowski Date: Tue, 15 Oct 2013 11:22:18 +0200 Subject: [PATCH] [CallLog] updated CallLog sources Change-Id: I89b69ca2a5c653a559b536dee0857d6d28d01154 --- js/app.js | 1 + js/app.ui.js | 19 +++++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/js/app.js b/js/app.js index e58ca9d..cc76d56 100644 --- a/js/app.js +++ b/js/app.js @@ -59,6 +59,7 @@ var App = null; * Updates call history and caller detailed history lists */ updateCallLists: function App_updateCallLists() { + this.ui.updateCheckboxes(); // workaround - time zone update tizen.time.getCurrentDateTime().toLocalTimezone(); // workaround; diff --git a/js/app.ui.js b/js/app.ui.js index 575ee52..893548e 100644 --- a/js/app.ui.js +++ b/js/app.ui.js @@ -748,14 +748,7 @@ function Ui(contacts) { var self = this; document.addEventListener('webkitvisibilitychange', function () { if (document.webkitVisibilityState === 'hidden') { - self.checkedLogs = []; - $('#forCallerList li.call').each(function () { - if ($(this).find('form label') - .hasClass('ui-checkbox-on')) { - var checkedEntry = $(this).data('entries')[0]; - self.checkedLogs.push(checkedEntry.uid); - } - }); + self.updateCheckboxes(); } else { self.loadContacts(app.updateCallLists.bind(app)); $('#callActionBtn, #smsActionBtn') @@ -764,6 +757,16 @@ function Ui(contacts) { }); }, + updateCheckboxes: function Ui_updateCheckboxes () { + var checkedLogs = this.checkedLogs = []; + $('#forCallerList li.call').each(function () { + if ($(this).find('form label').hasClass('ui-checkbox-on')) { + var checkedEntry = $(this).data('entries')[0]; + checkedLogs.push(checkedEntry.uid); + } + }); + }, + lockButtons: function Ui_lockButtons(buttons) { $(buttons).addClass('ui-disabled').attr('tabIndex', '-1').blur(); }, -- 2.7.4