Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAswani Prakash <aswani15prakash@gmail.com>2018-07-04 03:05:42 +0300
committerMaurĂ­cio Meneghini Fauth <mauriciofauth@gmail.com>2018-07-04 03:05:42 +0300
commitb978def8dcbd87ab9d5ab8f4e81b1719dde96f19 (patch)
tree3c472ceaf7d25b8fcedeee736b95cc0f47377624 /js
parent5e2e27dfeb8190e1e7e02590446965b7a89be0d5 (diff)
#14045 issue fix filtering is slow (#14236)
* 14045 issue fix filtering is slow Signed-off-by: Aswani Prakash <aswani15prakash@gmail.com> * space issue Signed-off-by: Aswani Prakash <aswani15prakash@gmail.com>
Diffstat (limited to 'js')
-rw-r--r--js/functions.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/js/functions.js b/js/functions.js
index fe78a28193..4e7c087192 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -4700,18 +4700,20 @@ $(document).on('keyup', '#filterText', function () {
var count = 0;
$('[data-filter-row]').each(function () {
var $row = $(this);
- console.log($row);
/* Can not use data() here as it does magic conversion to int for numeric values */
if ($row.attr('data-filter-row').indexOf(filterInput) > -1) {
count += 1;
$row.show();
- $row.find('input.checkall').removeClass('row-hidden').trigger('change');
+ $row.find('input.checkall').removeClass('row-hidden');
} else {
$row.hide();
- $row.find('input.checkall').addClass('row-hidden').prop('checked', false).trigger('change');
+ $row.find('input.checkall').addClass('row-hidden').prop('checked', false);
$row.removeClass('marked');
}
});
+ setTimeout(function(){
+ $(checkboxes_sel).trigger('change');
+ }, 300);
$('#filter-rows-count').html(count);
});
AJAX.registerOnload('functions.js', function () {