diff --git a/action.php b/action.php index 67b230b..d8b691d 100644 --- a/action.php +++ b/action.php @@ -7,7 +7,6 @@ /** * Make things happen when buttons are pressed and forms submitted. */ - require_once __DIR__ . "/required.php"; if ($VARS['action'] !== "signout") { @@ -22,11 +21,11 @@ if ($VARS['action'] !== "signout") { */ function returnToSender($msg, $arg = "") { global $VARS; - if ($arg == "") { - header("Location: app.php?page=" . urlencode($VARS['source']) . "&msg=" . $msg); - } else { - header("Location: app.php?page=" . urlencode($VARS['source']) . "&msg=$msg&arg=$arg"); + $header = "Location: app.php?page=" . urlencode($VARS['source']) . "&msg=$msg"; + if ($arg != "") { + $header .= "&arg=$arg"; } + header($header); die(); } diff --git a/static/js/app.js b/static/js/app.js index 14b7c2a..8481e43 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -13,7 +13,7 @@ $(document).ready(function () { var gone = 20; var msgticker = setInterval(function () { - if ($('#msg-alert-box .alert:hover').length) { + if ($("#msg-alert-box .alert:hover").length) { msginteractiontick = 0; } else { msginteractiontick++; @@ -55,7 +55,6 @@ $(document).ready(function () { $("#msg-alert-box").on("mouseenter", function () { $("#msg-alert-box").css("opacity", "1"); msginteractiontick = 0; - console.log("👈😎👈 zoop"); }); $("#msg-alert-box").on("click", ".close", function (e) { $("#msg-alert-box").fadeOut("slow"); diff --git a/static/js/form.js b/static/js/form.js index 21c9f53..265c133 100644 --- a/static/js/form.js +++ b/static/js/form.js @@ -12,5 +12,5 @@ $("#savebtn").click(function (event) { event.preventDefault(); event.stopPropagation(); } - form.addClass('was-validated'); + form.addClass("was-validated"); }); \ No newline at end of file