[CallLog] updated CallLog sources
authorPiotr Dabrowski <p.dabrowski2@samsung.com>
Thu, 19 Sep 2013 12:27:03 +0000 (14:27 +0200)
committerPiotr Dabrowski <p.dabrowski2@samsung.com>
Thu, 19 Sep 2013 12:27:03 +0000 (14:27 +0200)
Change-Id: I860979212cf993d5475e8227c2b5c454bc796e29

js/app.ui.js

index 45f100c..89e9d20 100644 (file)
@@ -133,7 +133,7 @@ function Ui(contacts) {
                                self.selectAllDetailsEach();
                        });
 
-                       $('#calllogList').on('tap', '.date', function (event) {
+                       $('#calllogList').on('click', '.date', function (event) {
                                event.stopPropagation();
                        });
 
@@ -355,7 +355,8 @@ function Ui(contacts) {
 
                changeDetailsToRemoveState: function Ui_changeDetailsToRemoveState(set, clear) {
                        var counter = this.getCountSelectedLogEntries(),
-                               numChecked = $('#forCallerList input:checked').length;
+                               numChecked = $('#forCallerList input:checked').length,
+                               matrix, pos;
                        if (clear === true) {
                                counter = 0;
                                $('#forCallerList').find(':checkbox').attr('checked', false)
@@ -390,7 +391,14 @@ function Ui(contacts) {
                        } else {
                                this.showPopup('Are you sure you want to delete selected log?');
                        }
-                       this.refreshScrollView();
+
+                       matrix = $('#historyForCallerView .ui-scrollview-view').css('transform');
+                       pos = matrix.substr(7, matrix.length -8).split(',')[5];
+                       if (pos !== undefined) {
+                               $('#callerListContainer').scrollview('scrollTo', 100, parseInt(pos), 10);
+                       } else {
+                               this.refreshScrollView();
+                       }
                },
 
                /**