* Updates call history and caller detailed history lists
*/
updateCallLists: function App_updateCallLists() {
+ this.ui.updateCheckboxes();
// workaround - time zone update
tizen.time.getCurrentDateTime().toLocalTimezone();
// workaround;
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')
});
},
+ 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();
},