Set @previewed for rendering preview partial.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10145 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d99dbe9f0c
commit
a53894dd22
|
@ -117,6 +117,7 @@ class MessagesController < ApplicationController
|
|||
message = @board.messages.find_by_id(params[:id])
|
||||
@attachements = message.attachments if message
|
||||
@text = (params[:message] || params[:reply])[:content]
|
||||
@previewed = message
|
||||
render :partial => 'common/preview'
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue