summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-11-17 12:22:08 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-11-17 12:22:08 -0500
commit329a1cd58f698c3d0b62da74e52e566b4883b39c (patch)
tree3908f6e198301084f2e86a99cd16ab58139fbb31 /src/usr/local/www
parent7abe8b3ed149bafa82e2803686898943065019ee (diff)
downloadpfsense-329a1cd58f698c3d0b62da74e52e566b4883b39c.zip
pfsense-329a1cd58f698c3d0b62da74e52e566b4883b39c.tar.gz
Fixed #5463
Diffstat (limited to 'src/usr/local/www')
-rwxr-xr-xsrc/usr/local/www/head.inc6
-rw-r--r--src/usr/local/www/index.php6
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;
}
OpenPOWER on IntegriCloud