summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/head.inc
diff options
context:
space:
mode:
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