Newer
Older
dmpopidor / app / views / notes / update.js.erb
dmproadmap.utils.tinymce.destroyEditorsByClassName('tinymce_notes');
// render the list of notes and invisible view and edit sections 
<% listlabel = "#comment-question-area-#{@question.id}" %>
$("<%=listlabel%>").html( 
    "<%= escape_javascript( render partial: '/phases/note', locals: {question: @question, answer: @answer, plan: @plan } ) %>"
);
dmproadmap.utils.tinymce.init({ selector: '.tinymce_notes'});