From 474d7b638ceed34b62e1ec3cb5f5320ee8ffc4b6 Mon Sep 17 00:00:00 2001 From: yuri Date: Mon, 12 Nov 2018 11:23:56 +0200 Subject: [PATCH] fix list sticked --- client/src/views/record/list.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/views/record/list.js b/client/src/views/record/list.js index 0851ffc6d6..46964b7a33 100644 --- a/client/src/views/record/list.js +++ b/client/src/views/record/list.js @@ -208,7 +208,6 @@ Espo.define('views/record/list', 'view', function (Dep) { var top; - if (this.$el.closest('.modal-body').length) { $scrollable = this.$el.closest('.modal-body'); top = 0; @@ -234,7 +233,7 @@ Espo.define('views/record/list', 'view', function (Dep) { }.bind(this)); this.on('check', function () { - if (this.checkedList.length === 0) return; + if (this.checkedList.length === 0 && !this.allResultIsChecked) return; cotrolSticking(); }, this); @@ -244,7 +243,7 @@ Espo.define('views/record/list', 'view', function (Dep) { }); var cotrolSticking = function () { - if (this.checkedList.length === 0) return; + if (this.checkedList.length === 0 && !this.allResultIsChecked) return; var middleTop = getOffsetTop($middle.get(0));