Skip to content

Commit

Permalink
Fix. Users checker. Fixed clearance condition place.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandergull committed Oct 23, 2024
1 parent c05b310 commit f2a7eb5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions js/ct-checkusers.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ window.apbct = window.apbct || {};

usersChecker.setListeners = () => {
$('#check_spam_users').click(() => {
if (scanInProgress) {
if (scanInProgress || usersChecker.cleared) {
return;
}
usersChecker.improvedCheck = $("#ct_impspamcheck_checkbox").is(":checked");
Expand Down Expand Up @@ -134,13 +134,9 @@ window.apbct = window.apbct || {};
};

usersChecker.clearUserCheckerResults = () => {
if (usersChecker.cleared)
{
return;
}
usersChecker.cleared = true;
usersChecker.layoutClearById('spamusers_table');
const data = {action: 'usersChecker', route: 'clearResults'};
usersChecker.cleared = true;
return usersChecker.ajaxRequest(data);
};

Expand Down

0 comments on commit f2a7eb5

Please sign in to comment.