vendor/plugins/refinery/app/views/shared/_message.html.erb in refinerycms-0.9.5.29 vs vendor/plugins/refinery/app/views/shared/_message.html.erb in refinerycms-0.9.5.30

- old
+ new

@@ -1,11 +1,11 @@ <% flash.each do |key, value| %> <div id="flash" class="flash_<%= key %>" style='display: none;' > - <%= value %> (<%= link_to "close", "", {:id => "close"} %>) + <%= value %> (<%= link_to "close", "", {:id => "flash_close"} %>) <script type="text/javascript"> - $('close').observe('click', function(e){ - $('flash').fade({ duration: 0.3 }); - e.preventDefault(); + jQuery('#flash_close').click(function(e) { + jQuery('#flash').fadeOut({duration: 330}); + e.preventDefault(); }); </script> </div> <% end %>