new parameter name and fix to notification badge css

This commit is contained in:
Steven Fuchs 2011-12-22 22:57:33 -05:00
parent f3486e831f
commit 1519cdd672

View file

@ -26,7 +26,7 @@
}
$.ajax({
url: "notifications/" + $(this).data("guid"),
data: { is_unread: $(this).hasClass("unread") },
data: { unread: $(this).hasClass("unread") },
type: "PUT"
});
});
@ -61,11 +61,11 @@
if(self.count === 0) {
self.badge.addClass("hidden");
$( ".notification_count" ).addClass("hidden");
$( ".notification_count" ).removeClass("unread");
}
else if(self.count === 1) {
self.badge.removeClass("hidden");
$( ".notification_count" ).removeClass("hidden");
$( ".notification_count" ).addClass("unread");
}
}
};