From e919bb88c8e2cb379cf4134dfaccfb0a978f4422 Mon Sep 17 00:00:00 2001
From: Piotr Dabrowski
Date: Wed, 7 Aug 2013 12:28:45 +0200
Subject: [PATCH] [CallLog] updated CallLog sources
Change-Id: I1b6e7f8bb5d58417b1b5219e6d9a78bd4206bfc8
---
js/app.ui.js | 19 +++++++++++++------
templates/callView.tpl | 7 ++++++-
2 files changed, 19 insertions(+), 7 deletions(-)
diff --git a/js/app.ui.js b/js/app.ui.js
index 549673e..530b8d3 100644
--- a/js/app.ui.js
+++ b/js/app.ui.js
@@ -62,8 +62,15 @@ function Ui(contacts) {
initPages: function Ui_initPages() {
var pages = [], body = $('body');
- body.append(this.templateManager.get('messageWindow')).append(this.templateManager.get('errorWindow')).trigger('create');
- $('#callView').append($(this.templateManager.get('callView')).children()).trigger('pagecreate');
+ body
+ .append(this.templateManager.get('messageWindow'))
+ .append(this.templateManager.get('errorWindow'))
+ .trigger('create');
+ $('#callView')
+ .append($(this.templateManager.get('callView'))
+ .children())
+ .trigger('pagecreate')
+ .trigger('pageshow');
pages.push(this.templateManager.get('callerHistory'));
body.append(pages.join(''));
this.removeSearchBarToHeader();
@@ -199,7 +206,7 @@ function Ui(contacts) {
if (e.keyName == "back") {
if ($.mobile.popup.active) {
$.mobile.popup.active.close();
- }else if (self.removeMode === true) {
+ } else if (self.removeMode === true) {
app.ui.changeDetailsToRemoveState(undefined, true);
} else if ($.mobile.activePage.attr('id') === 'callView') {
tizen.application.getCurrentApplication().exit();
@@ -474,9 +481,9 @@ function Ui(contacts) {
if (this.removeMode) {
if ($('#selectAllDetails').attr('checked')){
this.selectAll();
- $('.toRemove, .selectAllBox', $('#historyForCallerView'))
- .removeClass('hidden');
}
+ $('.toRemove, .selectAllBox', $('#historyForCallerView'))
+ .removeClass('hidden');
$('#forCallerList .toRemove').show()
}
},
@@ -617,7 +624,6 @@ function Ui(contacts) {
$('#deleteActionBtn').removeClass('ui-disabled');
}
});
- this.checkedLogs = [];
}
this.addEventsForCallerListCheckboxes();
},
@@ -713,6 +719,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')) {
diff --git a/templates/callView.tpl b/templates/callView.tpl
index d9d9c96..7073de1 100644
--- a/templates/callView.tpl
+++ b/templates/callView.tpl
@@ -3,7 +3,12 @@
Call log
--
2.7.4