Browse Source

Add check/times to messages

master
Skylar Ittner 4 years ago
parent
commit
40efe0409d
  1. 8
      cards/js/qwikclock_punchinout.js

8
cards/js/qwikclock_punchinout.js

@ -35,9 +35,9 @@ $(".card_qwikclock_punchinout").on("click", ".start_btn", function () {
action: "punchin"
}, function (resp) {
if (resp.status == "OK") {
showmsg(resp.msg, "success");
showmsg('<i class="fas fa-check"></i> ' + resp.msg, "success");
} else {
showmsg(resp.msg, "danger");
showmsg('<i class="fas fa-times"></i> ' + resp.msg, "danger");
}
}, "json");
});
@ -52,9 +52,9 @@ $(".card_qwikclock_punchinout").on("click", ".stop_btn", function () {
action: "punchout"
}, function (resp) {
if (resp.status == "OK") {
showmsg(resp.msg, "success");
showmsg('<i class="fas fa-check"></i> ' + resp.msg, "success");
} else {
showmsg(resp.msg, "danger");
showmsg('<i class="fas fa-times"></i> ' + resp.msg, "danger");
}
}, "json");
});
Loading…
Cancel
Save