vendor/plugins/refinery/app/views/shared/_message.html.erb in refinerycms-0.9.5.5 vs vendor/plugins/refinery/app/views/shared/_message.html.erb in refinerycms-0.9.5.6

- old
+ new

@@ -1,10 +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 => "close"} %>) <script type="text/javascript"> - $('close').observe('click', function(){ + $('close').observe('click', function(e){ $('flash').fade({ duration: 0.3 }); + e.preventDefault(); }); </script> </div> <% end %> \ No newline at end of file