[CallLog]update CallLog(tizen_2.1)
authorgs86.lee <gs86.lee@samsung.com>
Fri, 26 Apr 2013 05:20:14 +0000 (14:20 +0900)
committergs86.lee <gs86.lee@samsung.com>
Fri, 26 Apr 2013 05:21:10 +0000 (14:21 +0900)
Change-Id: I54b611250e10a84f2cfd149bf3a050b49c9aeedb

js/app.ui.js

index 9769792..13c338f 100644 (file)
@@ -135,7 +135,7 @@ function Ui(contacts) {
                                $this.data('activated', true);
                                setTimeout(function () {
                                        $this.data('activated', false);
-                               }, 1000);
+                               }, 2000);
 
                                self.hideCheckboxes();
                                app.makeCall($('#forCallerList').data('remoteParty'));
@@ -147,7 +147,7 @@ function Ui(contacts) {
                                self.changeDetailsToRemoveState();
                        });
 
-                       $('#forCallerList').on('tap', 'li', function () {
+                       $('.selectAllBox').on('tap', 'li', function () {
                                var checkbox = $(this).find(':checkbox');
                                if (self.removeMode === true) {
                                        if (checkbox.attr('checked')) {
@@ -320,6 +320,9 @@ function Ui(contacts) {
                                $('.ui-listview-filter .ui-input-text').trigger('change');
                                $.mobile.changePage('#callView');
                        }
+
+                       this.changeDetailsToRemoveState(true);
+                       this.scrollToBottom();
                },
 
                changeDetailsToRemoveState: function Ui_changeDetailsToRemoveState(set) {
@@ -627,6 +630,14 @@ function Ui(contacts) {
                        $('.ui-input-cancel').remove(); // patch for WebUI bug;
                },
 
+               scrollToBottom: function () {
+                       var area = $(".ui-scrollview-view"),
+                               diff = area.height() - area.parent().height();
+                       if (diff >= 0) {
+                               area.css('-webkit-transform', 'translate3d(0,-' + diff + 'px,0)');
+                       }
+               },
+
                /**
                 * WORKAROUND;
                 * Patch for UI, bad refresh scrollView