summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/head.inc
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-11-18 19:13:14 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-11-18 19:15:55 -0500
commit0206483d49ef8139ccbc281fdba5f2f62a0bb925 (patch)
treea24bb6e6d7f0a3a7e4d6d93fdd58194ce25fc9be /src/usr/local/www/head.inc
parent3329e8a1775e99ad529b062afa50591c1c3cd49a (diff)
downloadpfsense-0206483d49ef8139ccbc281fdba5f2f62a0bb925.zip
pfsense-0206483d49ef8139ccbc281fdba5f2f62a0bb925.tar.gz
DEBUG code for Redmine: 5463
Diffstat (limited to 'src/usr/local/www/head.inc')
-rwxr-xr-xsrc/usr/local/www/head.inc11
1 files changed, 9 insertions, 2 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;
});
});
//]]>
OpenPOWER on IntegriCloud