Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%- if flash.key?(:error) -%>
- $("form#new_comment").prepend('<div id="comment-error"><%= escape_javascript(flash.delete(:error)) %></div>');
- $("div#comment-error").fadeOut(6000, function() {
- $(this).remove()
- });
- <%- else -%>
- $("form#new_comment").prepend('<div id="comment-notice"><%= escape_javascript(flash.delete(:notice)) %></div>');
- $("form#new_comment")[0].reset();
- $("div#comment-notice").fadeOut(6000, function() {
- $(this).remove()
- });
- <%- end -%>
Add Comment
Please, Sign In to add comment