Skip to content

Commit

Permalink
Informative messages ("UF_MSG_*") have more emphasis (Bulma box)
Browse files Browse the repository at this point in the history
  • Loading branch information
payne911 committed Nov 24, 2022
1 parent 87cfeb0 commit 0b854aa
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions website/src/queries-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,19 @@ function clearTable() {
getTableBody().empty();
}
function setMsg(msg) {
JQ_ID_MSG.html(msg);
JQ_ID_MSG
.html(msg)
.addClass("box")
.addClass("has-background-info-light")
.css("border-width", "thin")
.css("border-color", "rgba(0,0,0,0.25)")
.css("border-style", "solid");
}
function clearMsg() {
JQ_ID_MSG.empty();
JQ_ID_MSG
.empty()
.removeClass("box")
.css("border-style", "");
}
function clearNonErrorMsg() {
const msg = JQ_ID_MSG.html();
Expand Down

1 comment on commit 0b854aa

@payne911
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#14

To see an example of this "info box". :)

Please sign in to comment.