Permalink
Browse files

Make HTML match JS

  • Loading branch information...
1 parent 6df8afe commit 3074a6826a6d1fe14e475c5cc9c71d2e0e028fba @camdez camdez committed with mike-burns Mar 23, 2012
@@ -1,5 +1,5 @@
<% if current_user and current_announcement.exists? and not announcement_hidden?(current_announcement) %>
- <div id="flash-border" class="announcement">
+ <div id="announcement">
<span><%= current_announcement.body.html_safe %></span>
<span class="hide">
<%= link_to_function "hide", "hideAnnouncement('announcement_#{current_announcement.created_at}');" %>
@@ -1,11 +1,9 @@
<% if current_announcement.exists? and not announcement_hidden?(current_announcement) %>
- <div id="flash-border">
- <div id="announcement">
- <span><%= current_announcement.body.html_safe %></span>
- <span class="hide">
- <%= link_to_function "hide", "hideAnnouncement('announcement_#{current_announcement.created_at}');" %>
- </span>
- </div>
+ <div id="announcement">
+ <span><%= current_announcement.body.html_safe %></span>
+ <span class="hide">
+ <%= link_to_function "hide", "hideAnnouncement('announcement_#{current_announcement.created_at}')" %>
+ </span>
</div>
<% end %>
@@ -1,6 +1,6 @@
function hideAnnouncement(announcement_created_at) {
createCookie(announcement_created_at, 'hidden', 365);
- $("#announcement").parent().slideUp();
+ $("#announcement").slideUp();
}
// http://www.quirksmode.org/js/cookies.html

0 comments on commit 3074a68

Please sign in to comment.