Skip to content

Commit

Permalink
only show 'this list is empty\ message after listing/searching action…
Browse files Browse the repository at this point in the history
… complete
  • Loading branch information
johndoh committed Dec 4, 2024
1 parent 66c1363 commit 95b5492
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions skins/elastic/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -633,9 +633,7 @@ function rcube_elastic_ui() {
msg = table.data('label-msg'),
list = table.is('ul') ? table : table.children('tbody');

if (!rcmail.env.search_request && !rcmail.env.qsearch
&& msg && !list.children(':visible').length
) {
if (msg && !list.children(':visible').length) {
ext = table.data('label-ext');
command = table.data('create-command');

Expand All @@ -646,13 +644,15 @@ function rcube_elastic_ui() {
info.text(msg).removeClass('hidden');
return;
}

info.addClass('hidden');
},
callback = function () {
info.addClass('hidden');

// wait until the UI stops loading and the list is visible
if (rcmail.busy || !table.is(':visible')) {
return setTimeout(callback, 250);
clearTimeout(env.list_timer);
env.list_timer = setTimeout(callback, 250);
return;
}

clearTimeout(env.list_timer);
Expand Down

0 comments on commit 95b5492

Please sign in to comment.