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
%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
#notifications_overlay
display: none
position: absolute
border: 4px solid black
background-color: white
width: 700px
padding: 10px
top: 75.5px
left: 217.5px
:display none
:position absolute
:border 4px solid black
:background
:color white
:width 700px
:padding 10px
:top 75.5px
:left 217.5px
a.close
:float right
:text-decoration none