app/views/template/mdwa/_notice.html.erb in mdd-3.1.0 vs app/views/template/mdwa/_notice.html.erb in mdd-3.1.1
- old
+ new
@@ -1,13 +1,13 @@
<% unless notice.nil? and alert.nil? %>
- <script type="text/javascript">
+ <%= javascript_tag do %>
$(function() {
setTimeout(deleteSystemNotice, 3000);
});
- </script>
+ <% end %>
<div id="system_notice">
<%= notice || alert %>
<a id="system_notice_close"></a>
</div>
-<% end %>
\ No newline at end of file
+<% end %>