Skip to content

Commit

Permalink
Merge pull request #646 from moorcoder/main
Browse files Browse the repository at this point in the history
645 showLoader function restored to sensesp.js
  • Loading branch information
mairas authored Jun 22, 2023
2 parents 330de4a + fd2da26 commit e44c4df
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions web/docroot/js/sensesp.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,21 @@ Element.prototype.empty = function () {
}
}

function showLoader(show, status) {
var loader = document.getElementById("loader");
if (show) {
if (status == null || status == undefined) {
status = "Loading...";
}

loadertext.innerHTML = status;
loader.classList.remove("visually-hidden");
}
else {
loader.classList.add("visually-hidden");
}
}

function executeCommand(name, shouldConfirm) {
if (shouldConfirm == true && !confirm("Execute " + name + "?")) {
return;
Expand Down

0 comments on commit e44c4df

Please sign in to comment.