[CallLog] updated CallLog sources
authorPiotr Dabrowski <p.dabrowski2@samsung.com>
Tue, 17 Sep 2013 13:47:35 +0000 (15:47 +0200)
committerPiotr Dabrowski <p.dabrowski2@samsung.com>
Tue, 17 Sep 2013 13:47:35 +0000 (15:47 +0200)
Change-Id: Ic96d7421c12860fd3afcc781f8299c5fdc7ebb1e

css/style.css
js/app.ui.js

index 68171d9..3305d3d 100644 (file)
@@ -34,6 +34,9 @@ li {
        width: 100%;
        */
 }
+li.ui-screen-hidden{
+       display: none !important;
+}
 
 #delete span {
        border-bottom: 0px;
index f183466..45f100c 100644 (file)
@@ -205,13 +205,12 @@ function Ui(contacts) {
                                        } 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();
                },
 
@@ -470,17 +469,23 @@ function Ui(contacts) {
                        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 */
@@ -753,7 +758,7 @@ function Ui(contacts) {
                                } else {
                                        self.loadContacts(app.updateCallLists.bind(app));
                                        $('#callActionBtn, #smsActionBtn')
-                                               .removeClass('ui-disabled').attr('tabIndex', '0');
+                                               .removeClass('ui-disabled');
                                }
                        });
                },