]> source.dussan.org Git - redmine.git/commitdiff
Do not responde with javascript on regular requests.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 24 Feb 2011 17:52:38 +0000 (17:52 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 24 Feb 2011 17:52:38 +0000 (17:52 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4946 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/journals_controller.rb

index d3b56e8cb8c89e3d012f00e169ce7fc2ccd45e7f..189204e26ee12c66d5608743f72da3e354ceeeaa 100644 (file)
@@ -75,6 +75,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