Add a bit of cleanup and comments

pull/17/head
Skylar Ittner 7 years ago
parent f14393a8a4
commit 427390cbc4

@ -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 == "") {

@ -2,6 +2,6 @@
$(document).ready(function () {
/* Fade out alerts */
$(".alert .close").click(function (e) {
$(this).parent().fadeOut('slow');
$(this).parent().fadeOut("slow");
});
});
Loading…
Cancel
Save