Display notifications on the site, and provide a ajaxy way to acknowledge them

This commit is contained in:
Trever Fischer
2012-06-08 14:53:32 -04:00
parent 60acb6b315
commit f99949cb7b
7 changed files with 60 additions and 0 deletions

View File

@@ -502,3 +502,30 @@ fieldset {
.petition-list .petition-title {
font-size: xx-large;
}
#notifications-block {
border: 1px solid #f80;
background-color: #fa4;
margin: 1em;
color: #000;
font-size: large;
padding: 3px;
}
#notifications-block li {
padding: 5px;
list-style: none;
padding-left: 40px;
}
#notifications-block li.notification-ack {
border: none;
}
#notifications-block input {
float:right;
}
#notifications-block li.notice-badge_awarded {
background: url("badges/background.png") left center no-repeat;
}

View File

@@ -0,0 +1,7 @@
$(document).ready(function () {
$("#notification-ack-form").submit(function(evt) {
evt.preventDefault();
$("#notifications-block").slideUp();
$.get(uris['local.views.mark_notifications_read']);
});
});