From: Piotr Dabrowski Date: Fri, 20 Sep 2013 11:19:41 +0000 (+0200) Subject: [CallLog] updated CallLog sources X-Git-Tag: 2.2.1_release~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=061766f5d32e9f393110ff2e9a664dd82094b655;p=samples%2Fweb%2FCallLog.git [CallLog] updated CallLog sources Change-Id: I976208c934bd20b5d35c37ae4f924241e65aa2de --- diff --git a/css/style.css b/css/style.css index 3305d3d..4c1346b 100644 --- a/css/style.css +++ b/css/style.css @@ -138,6 +138,10 @@ li.ui-screen-hidden{ clear: right; } +.contact .number .numberOfEntries { + font-size: 16px; +} + .contact .infoContainer { width: 100%; height: 66px; diff --git a/js/app.helpers.js b/js/app.helpers.js index 7bb1869..868f551 100644 --- a/js/app.helpers.js +++ b/js/app.helpers.js @@ -53,7 +53,8 @@ function Helpers() { apHours = hours % 12 < 10 ? '0' + hours % 12 : hours % 12; return apHours.toString().replace("00", "12") + ':' + - dateObj.getMinutes() + (hours > 11 ? ' PM' : ' AM'); + (dateObj.getMinutes() < 10 ? "0" + dateObj.getMinutes() : + dateObj.getMinutes()) + (hours > 11 ? ' PM' : ' AM'); } return dateObj.toTimeString().substring(0, 5); diff --git a/js/app.ui.js b/js/app.ui.js index 89e9d20..e53b8b0 100644 --- a/js/app.ui.js +++ b/js/app.ui.js @@ -149,13 +149,13 @@ function Ui(contacts) { $('#smsActionBtn').on('click', function (event) { event.stopPropagation(); event.preventDefault(); - self.lockButtons(); + self.lockButtons('#smsActionBtn'); self.hideCheckboxes(); app.sendSms($('#forCallerList').data('remoteParty')); }); $('#callActionBtn').on("click", function (event) { - self.lockButtons(); + self.lockButtons('#callActionBtn'); self.hideCheckboxes(); app.makeCall($('#forCallerList').data('remoteParty')); }); @@ -188,7 +188,7 @@ function Ui(contacts) { $( "#errorPopup" ).bind({ popupafterclose: function(){ - self.unlockOptionButtons(); + self.unlockButtons(); } }); @@ -496,16 +496,6 @@ function Ui(contacts) { } }, 0); - /* workaround for registering call during working app in removeMode */ - if (this.removeMode) { - if ($('#selectAllDetails').attr('checked')){ - this.selectAll(); - } - $('.toRemove, .selectAllBox', $('#historyForCallerView')) - .removeClass('hidden'); - $('#forCallerList .toRemove').show() - } - setTimeout(this.helpers.scrollTo.bind(this, calllogListContent, calllogListContentPos), 10); }, @@ -634,6 +624,7 @@ function Ui(contacts) { // change to remove mode if it was active before registering call if (this.removeMode) { this.removeMode = !this.removeMode; + this.setSelectAllDetails(); this.changeDetailsToRemoveState(); // check previous checked entries this.checkedLogs.forEach(function(logUid){ @@ -657,10 +648,10 @@ function Ui(contacts) { } this.addEventsForCallerListCheckboxes(); // lock buttons if unknown caller - if(remoteParty) { - this.unlockOptionButtons(); + if (remoteParty) { + this.unlockButtons(); } else { - this.lockButtons(); + this.lockButtons('#callActionBtn, #smsActionBtn'); } }, @@ -677,7 +668,7 @@ function Ui(contacts) { * @param numberOfEntries */ updateCallerHeaderNumberOfEntries: function Ui_updateCallerHeaderNumberOfEntries(numberOfEntries) { - $('.infoContainer .numberOfEntries').html(numberOfEntries); + $('.infoContainer .numberOfEntries').html('' + numberOfEntries + ' ' + (numberOfEntries === 1 ? 'call' : 'calls')); }, /** @@ -771,11 +762,11 @@ function Ui(contacts) { }); }, - lockButtons: function () { - $('#callActionBtn, #smsActionBtn').addClass('ui-disabled').attr('tabIndex', '-1').blur(); + lockButtons: function Ui_lockButtons(buttons) { + $(buttons).addClass('ui-disabled').attr('tabIndex', '-1').blur(); }, - unlockOptionButtons : function Ui_unlockOptionButtons(){ + unlockButtons: function Ui_unlockButtons(){ $('#callActionBtn, #smsActionBtn').removeClass('ui-disabled').attr('tabIndex', '0'); }, diff --git a/templates/callerHistory.tpl b/templates/callerHistory.tpl index c5df242..f936220 100644 --- a/templates/callerHistory.tpl +++ b/templates/callerHistory.tpl @@ -5,7 +5,7 @@
-
()
+
Call