gitlabhq/app/views/notes/create.js.haml
Dmitriy Zaporozhets 6b030fd41d 1.1pre1
2011-10-21 20:04:41 +03:00

11 lines
252 B
Text

- 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");