annotate .svn/pristine/c1/c17c223645b98b5a67fab194c2d8d177cf3cf7c5.svn-base @ 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 261b3d9a4903
children
rev   line source
Chris@1464 1 api.wiki_page do
Chris@1464 2 api.title @page.title
Chris@1464 3 if @page.parent
Chris@1464 4 api.parent :title => @page.parent.title
Chris@1464 5 end
Chris@1464 6 api.text @content.text
Chris@1464 7 api.version @content.version
Chris@1464 8 api.author(:id => @content.author_id, :name => @content.author.name)
Chris@1464 9 api.comments @content.comments
Chris@1464 10 api.created_on @page.created_on
Chris@1464 11 api.updated_on @content.updated_on
Chris@1464 12
Chris@1464 13 api.array :attachments do
Chris@1464 14 @page.attachments.each do |attachment|
Chris@1464 15 render_api_attachment(attachment, api)
Chris@1464 16 end
Chris@1464 17 end if include_in_api_response?('attachments')
Chris@1464 18 end