publiclab/plots2

View on GitHub
app/views/answers/create.js.erb

Summary

Maintainability
Test Coverage
$('#answers').append('<%= escape_javascript(render :partial => "questions/answer", :locals => {answer: @answer, new_answer: true}) %>')
$('#short-comment-count')[0].innerHTML = parseInt($('#short-comment-count')[0].innerHTML)+1
$('textarea').val("");
notyNotification('mint', 3000, 'success', 'topRight', 'Answer Created!');