From 40787ff43f00291118792da5554467e24b20aaaa Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 24 Feb 2011 17:52:38 +0000 Subject: [PATCH] Do not responde with javascript on regular requests. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4946 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/journals_controller.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/controllers/journals_controller.rb b/app/controllers/journals_controller.rb index 1f65dc82..b7ec1eb0 100644 --- a/app/controllers/journals_controller.rb +++ b/app/controllers/journals_controller.rb @@ -76,6 +76,14 @@ class JournalsController < ApplicationController format.html { redirect_to :controller => 'issues', :action => 'show', :id => @journal.journalized_id } format.js { render :action => 'update' } end + else + respond_to do |format| + format.html { + # TODO: implement non-JS journal update + render :nothing => true + } + format.js + end end end