From 427390cbc4eac5b530e314a6d0dc47094ba8d074 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sun, 7 May 2017 00:30:25 -0600 Subject: [PATCH] Add a bit of cleanup and comments --- action.php | 6 ++++++ static/js/app.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/action.php b/action.php index 0ae4e7c..f4f4851 100644 --- a/action.php +++ b/action.php @@ -8,6 +8,12 @@ require_once __DIR__ . "/required.php"; dieifnotloggedin(); +/** + * Redirects back to the page ID in $_POST/$_GET['source'] with the given message ID. + * The message will be displayed by the app. + * @param string $msg message ID (see lang/messages.php) + * @param string $arg If set, replaces "{arg}" in the message string when displayed to the user. + */ function returnToSender($msg, $arg = "") { global $VARS; if ($arg == "") { diff --git a/static/js/app.js b/static/js/app.js index 6f16ebe..16ad7de 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -2,6 +2,6 @@ $(document).ready(function () { /* Fade out alerts */ $(".alert .close").click(function (e) { - $(this).parent().fadeOut('slow'); + $(this).parent().fadeOut("slow"); }); }); \ No newline at end of file