From 40efe0409d362376461c6847f17eee8eebac51ac Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Tue, 26 Dec 2017 23:20:25 -0700 Subject: [PATCH] Add check/times to messages --- cards/js/qwikclock_punchinout.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cards/js/qwikclock_punchinout.js b/cards/js/qwikclock_punchinout.js index 7cafeb3..0d10ac1 100644 --- a/cards/js/qwikclock_punchinout.js +++ b/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(' ' + resp.msg, "success"); } else { - showmsg(resp.msg, "danger"); + showmsg(' ' + 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(' ' + resp.msg, "success"); } else { - showmsg(resp.msg, "danger"); + showmsg(' ' + resp.msg, "danger"); } }, "json"); }); \ No newline at end of file