gitlabhq/app/views/notes/create.js.haml

12 lines
345 B
Plaintext
Raw Normal View History

2011-10-08 23:36:38 +02:00
- if @note.valid?
:plain
$("#new_note .errors").remove();
$("#notes-list").append("#{escape_javascript(render(:partial => 'show', :locals => {:note => @note} ))}");
$('#note_note').val("");
- else
:plain
$("#new_note").replaceWith("#{escape_javascript(render('form'))}");
2011-10-17 19:05:47 +02:00
:plain
$("#submit_note").removeAttr("disabled");