Browse Source

Add a bit of cleanup and comments

master
Skylar Ittner 2 years ago
parent
commit
427390cbc4
2 changed files with 7 additions and 1 deletions
  1. 6
    0
      action.php
  2. 1
    1
      static/js/app.js

+ 6
- 0
action.php View File

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

+ 1
- 1
static/js/app.js View File

@@ -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