diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-11-18 19:13:14 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-11-18 19:15:55 -0500 |
commit | 0206483d49ef8139ccbc281fdba5f2f62a0bb925 (patch) | |
tree | a24bb6e6d7f0a3a7e4d6d93fdd58194ce25fc9be /src/usr/local/www | |
parent | 3329e8a1775e99ad529b062afa50591c1c3cd49a (diff) | |
download | pfsense-0206483d49ef8139ccbc281fdba5f2f62a0bb925.zip pfsense-0206483d49ef8139ccbc281fdba5f2f62a0bb925.tar.gz |
DEBUG code for Redmine: 5463
Diffstat (limited to 'src/usr/local/www')
-rwxr-xr-x | src/usr/local/www/head.inc | 11 | ||||
-rw-r--r-- | src/usr/local/www/index.php | 7 |
2 files changed, 15 insertions, 3 deletions
diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc index 835d67b..f262721 100755 --- a/src/usr/local/www/head.inc +++ b/src/usr/local/www/head.inc @@ -564,12 +564,19 @@ if (are_notices_pending()):?> //<![CDATA[ events.push(function(){ $('#clearallnotices').click(function() { + alert("Clear button clicked"); ajaxRequest = $.ajax({ url: "/index.php", type: "post", - data: { closenotice: "all"} + data: { closenotice: "all"}, + success: function(){ + alert('Success'); + window.location = window.location.href; + }, + failure: function () { + alert("Blew it!"); + } }); - window.location = window.location.href; }); }); //]]> diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index 59441ad..a0dbbf8 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -85,6 +85,11 @@ if (isset($_POST['closenotice'])) { exit; } +if (isset($_GET['closenotice'])) { + close_notice($_GET['closenotice']); + sleep(1); +} + if ($g['disablecrashreporter'] != true) { // Check to see if we have a crash report $x = 0; @@ -370,7 +375,7 @@ foreach ($widgets as $widgetname => $widgetconfig) </a> <a data-toggle="collapse" href="#widget-<?=$widgetname?> .panel-body"> <!-- actual icon is determined in css based on state of body --> - <i class="fa fa-plus-circle"></i> + <i class="icon-white icon-plsu"></i> </a> <a data-toggle="close" href="#widget-<?=$widgetname?>"> <i class="fa fa-times-circle"></i> |