Mercurial > hg > soundsoftware-site
annotate app/views/journals/new.js.erb @ 1524:82fac3dcf466 redmine-2.5-integration
Fix failure to interpret Javascript when autocompleting members for project
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 11 Sep 2014 10:24:38 +0100 |
parents | 433d4f72a19b |
children |
rev | line source |
---|---|
Chris@1115 | 1 $('#issue_notes').val("<%= raw escape_javascript(@content) %>"); |
Chris@1115 | 2 <% |
Chris@1115 | 3 # when quoting a private journal, check the private checkbox |
Chris@1115 | 4 if @journal && @journal.private_notes? |
Chris@1115 | 5 %> |
Chris@1115 | 6 $('#issue_private_notes').attr('checked', true); |
Chris@1115 | 7 <% end %> |
Chris@1115 | 8 |
Chris@1115 | 9 showAndScrollTo("update", "notes"); |
Chris@1115 | 10 $('#notes').scrollTop = $('#notes').scrollHeight - $('#notes').clientHeight; |