close link for notifications ajax

This commit is contained in:
Dan Hansen & Michael Sofaer 2011-06-20 18:45:36 -07:00 committed by Michael Sofaer & Raphael Sofaer
parent cba7a1a577
commit bc874e92cd
3 changed files with 20 additions and 8 deletions

View file

@ -14,3 +14,6 @@
%br %br
%time %time
= link_to("all of them", notifications_path)
%a.close{:href => "#" }
close

View file

@ -33,4 +33,9 @@ $(function() {
}); });
}); });
$("#notifications_overlay").delegate('a.close', 'click', function() {
console.log("hi!");
$('#notifications_overlay').hide();
});
}); });

View file

@ -3056,12 +3056,16 @@ ul#left_nav
:width 30px :width 30px
#notifications_overlay #notifications_overlay
display: none :display none
position: absolute :position absolute
border: 4px solid black :border 4px solid black
background-color: white :background
width: 700px :color white
padding: 10px :width 700px
top: 75.5px :padding 10px
left: 217.5px :top 75.5px
:left 217.5px
a.close
:float right
:text-decoration none