Permalink
Browse files

Fix broken notifications css in IE9. Closes #822.

  • Loading branch information...
onyxfish committed Aug 7, 2012
1 parent 2784e38 commit 1a219fe0257e60ca8f51ace8ddba8f5a5b3cbbf5
Showing with 8 additions and 6 deletions.
  1. +3 −3 client/static/css/panda.css
  2. +5 −3 client/static/js/views/root.js
@@ -21,20 +21,20 @@ h3 { font-weight: normal; padding-bottom: 4px; }
overflow-y: auto;
}
-#navbar-notifications .dropdown-menu ul a {
+#navbar-notifications .dropdown-menu ul li {
white-space: normal;
padding-bottom: 3px;
padding-top: 3px;
overflow-x: hidden;
border-top: 1px solid #efefef;
}
-#navbar-notifications .dropdown-menu ul a.unread {
+#navbar-notifications .dropdown-menu ul li.unread {
background-color: #edf5f9;
border-top: 1px solid #ccc;
}
-#navbar-notifications .dropdown-menu ul a.unread:hover {
+#navbar-notifications .dropdown-menu ul li.unread:hover {
background-color: #0088cc;
border-top: 1px solid #ccc;
}
@@ -250,9 +250,11 @@ PANDA.views.Root = Backbone.View.extend({
this._current_user.notifications.each(function(note) {
var unread = note.get("read_at") ? "" : " unread"
- if (unread) { unread_count += 1 };
+ if (unread) {
+ unread_count += 1
+ };
- $("#navbar-notifications .dropdown-menu ul").append('<li><a href="' + note.get("url") + '" class="' + unread + '" data-notification-id="' + note.id + '">' + unescape(note.get("message")) + '</a></li>');
+ $("#navbar-notifications .dropdown-menu ul").append('<li class="' + unread + '"><a href="' + note.get("url") + '" data-notification-id="' + note.id + '">' + unescape(note.get("message")) + '</a></li>');
}, this);
} else {
$("#navbar-notifications .dropdown-menu ul").append('<li><a href="#"><em>No notifications</em></a></li>');
@@ -296,7 +298,7 @@ PANDA.views.Root = Backbone.View.extend({
this._current_user.mark_notifications_read();
} else {
- $("#navbar-notifications .dropdown-menu ul li a").removeClass("unread");
+ $("#navbar-notifications .dropdown-menu ul li").removeClass("unread");
}
return true;

0 comments on commit 1a219fe

Please sign in to comment.