diff --git a/edit_list.php b/edit_list.php index b607393..eef9ee6 100644 --- a/edit_list.php +++ b/edit_list.php @@ -4,6 +4,7 @@ require("init.php"); $list_name = isset($_GET["list_name"]) ? $_GET["list_name"] : ""; $domain = $_SESSION["domain"]; +$success = isset($_GET["success"]) ? true : false; if (!isset($_SESSION["auth"]) || $_SESSION["auth"] != 1) { @@ -79,6 +80,7 @@ $smarty->assign("domain", $domain); $smarty->assign("moderators", $moderators); $smarty->assign("prefix", $prefix); $smarty->assign("username", $_SESSION["username"]); +$smarty->assign("success", $success); $smarty->display("edit_list.tpl"); ?> diff --git a/misc/smarty/templates_en/edit_list.tpl b/misc/smarty/templates_en/edit_list.tpl index 6b17bc6..cc37d3c 100644 --- a/misc/smarty/templates_en/edit_list.tpl +++ b/misc/smarty/templates_en/edit_list.tpl @@ -56,6 +56,7 @@ + {if $success eq true}

List was successfully updated.

{/if}
diff --git a/save_list.php b/save_list.php index 4622183..5bd1c08 100644 --- a/save_list.php +++ b/save_list.php @@ -209,7 +209,7 @@ if (!$return["success"]) } } -header("Location: edit_list.php?list_name=$list_name"); +header("Location: edit_list.php?list_name=$list_name&success"); exit(); diff --git a/style.css b/style.css index 1924408..1cff72d 100644 --- a/style.css +++ b/style.css @@ -221,6 +221,12 @@ td height: 100%; } +.success +{ + font-weight: bold; + color: #00aa00; +} + #save_list { margin-top: 20px;