gitlabhq/app/views/notes/create.js.haml
2011-10-20 19:21:58 +03:00

12 lines
252 B
Plaintext

- if @note.valid?
:plain
$("#new_note .errors").remove();
updatePage();
$('#note_note').val("");
- else
:plain
$("#new_note").replaceWith("#{escape_javascript(render('form'))}");
:plain
$("#submit_note").removeAttr("disabled");