diff options
-rwxr-xr-x | src/usr/local/www/head.inc | 6 | ||||
-rw-r--r-- | src/usr/local/www/index.php | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc index 2787565..3fd1a62 100755 --- a/src/usr/local/www/head.inc +++ b/src/usr/local/www/head.inc @@ -564,7 +564,11 @@ if (are_notices_pending()):?> //<![CDATA[ events.push(function(){ $('#clearallnotices').click(function() { - <?php close_notice("all"); ?> + ajaxRequest = $.ajax({ + url: "/index.php", + type: "post", + data: { closenotice: "all"} + }); window.location = window.location.href; }); }); diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index cb08c80..99a2ea7 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -79,9 +79,9 @@ require_once('functions.inc'); require_once('notices.inc'); require_once("pkg-utils.inc"); -if (isset($_GET['closenotice'])) { - close_notice($_GET['closenotice']); - echo get_menu_messages(); +if (isset($_POST['closenotice'])) { + close_notice($_POST['closenotice']); + sleep(1); exit; } |