addEvents: function Ui_addEvents() {
var self = this;
- $(window).on('softkeyboardchange', function () {
+ $(window).on('resize', function () {
$.mobile.activePage.page('refresh');
});
document.addEventListener('tizenhwkey', function(e) {
if (e.keyName == "back") {
- if ($.mobile.activePage.attr('id') === 'callView') {
+ if (self.removeMode === true) {
+ app.ui.changeDetailsToRemoveState(undefined, true);
+ } else if ($.mobile.activePage.attr('id') === 'callView') {
tizen.application.getCurrentApplication().exit();
} else {
history.back();
this.scrollToBottom();
},
- changeDetailsToRemoveState: function Ui_changeDetailsToRemoveState(set) {
+ changeDetailsToRemoveState: function Ui_changeDetailsToRemoveState(set, clear) {
var counter = this.getCountSelectedLogEntries();
+ if (clear === true) {
+ counter = 0;
+ $('#forCallerList').find(':checkbox').attr('checked', false)
+ .data('checkboxradio').refresh();
+ $('.selectAllBox').find(':checkbox').attr('checked', false)
+ .data('checkboxradio').refresh();
+ }
if (set !== undefined) {
this.removeMode = false;
} else if (counter === 0) {
if (counter === 0) {
if (this.removeMode) {
$('#historyForCallerView .toRemove').removeClass('hidden');
- $('#historyForCallerView .selectAllBox').removeClass('hidden');
+ $('#historyForCallerView .selectAllBox')
+ .removeClass('hidden');
} else {
$('#historyForCallerView .toRemove').addClass('hidden');
$('#historyForCallerView .selectAllBox').addClass('hidden');