gitlab-org--gitlab-foss/app/views/notes/create.js.haml

12 lines
252 B
Plaintext
Raw Normal View History

2011-10-08 21:36:38 +00:00
- if @note.valid?
:plain
$("#new_note .errors").remove();
2011-10-20 16:21:58 +00:00
updatePage();
2011-10-08 21:36:38 +00:00
$('#note_note').val("");
- else
:plain
$("#new_note").replaceWith("#{escape_javascript(render('form'))}");
2011-10-17 17:05:47 +00:00
:plain
$("#submit_note").removeAttr("disabled");