Skip to content

Commit

Permalink
MID-6271 ajax busy sign fixed for login page
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed May 23, 2022
1 parent 792b6b0 commit 1b64e64
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions gui/admin-gui/src/frontend/js/midpoint-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,18 @@ export default class MidPointTheme {
}

showAjaxStatusSign() {
document.getElementById('ajax_busy').style.visibility = 'visible';
var element = document.getElementById('ajax_busy');
if (element != null) {
element.style.visibility = 'visible';
}
}

hideAjaxStatusSign() {
document.getElementById('ajax_busy').style.visibility = 'hidden';
var element = document.getElementById('ajax_busy');
if (element == null) {
return;
}
element.style.visibility = 'hidden';
if (document.querySelectorAll("[role='tooltip']") != null) {
var tooltips = document.querySelectorAll("[role='tooltip']"), i;
for (i = 0; i < tooltips.length; ++i) {
Expand Down

0 comments on commit 1b64e64

Please sign in to comment.