} else if (self.removeMode === true) {
app.ui.changeDetailsToRemoveState(undefined, true);
} else if ($.mobile.activePage.attr('id') === 'callView') {
- tizen.application.getCurrentApplication().exit();
+ tizen.application.getCurrentApplication().exit();
} else {
history.back();
}
}
});
-
self.onVisibilityChange();
},
calllogList.empty().append(elements);
/* workaround solution for not auto refreshing list view*/
- setTimeout(function () {
+ setTimeout(function () {
// original code, do not remove until web-ui release; N_SE-48946
- calllogList.listview({
- autodividers: true,
- //filter: true,
- autodividersSelector: function ( li ) {
- return $(li).find('.callDate').text() === app.ui.helpers.toNativeDate(new Date())
- ? "Today" : $(li).find('.callDate').text();
- }
- }).listview('refresh');
- $(".ui-li-divider").removeClass().addClass("date");
+ if ($("[data-type='search']").val().length != "") {
+ calllogList.listview('refresh');
+ $("[data-type='search']").trigger("keyup");
+ $(".ui-li-divider").removeClass("ui-li ui-li-divider ui-bar-s").addClass("date");
+ } else {
+ calllogList.listview({
+ autodividers: true,
+ //filter: true,
+ autodividersSelector: function ( li ) {
+ return $(li).find('.callDate').text() === app.ui.helpers.toNativeDate(new Date())
+ ? "Today" : $(li).find('.callDate').text();
+ }
+ }).listview('refresh');
+ $(".ui-li-divider").removeClass().addClass("date");
+ }
}, 0);
/* workaround for registering call during working app in removeMode */
} else {
self.loadContacts(app.updateCallLists.bind(app));
$('#callActionBtn, #smsActionBtn')
- .removeClass('ui-disabled').attr('tabIndex', '0');
+ .removeClass('ui-disabled');
}
});
},