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/head.inc | |
parent | 3329e8a1775e99ad529b062afa50591c1c3cd49a (diff) | |
download | pfsense-0206483d49ef8139ccbc281fdba5f2f62a0bb925.zip pfsense-0206483d49ef8139ccbc281fdba5f2f62a0bb925.tar.gz |
DEBUG code for Redmine: 5463
Diffstat (limited to 'src/usr/local/www/head.inc')
-rwxr-xr-x | src/usr/local/www/head.inc | 11 |
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; }); }); //]]> |