Reverts r12855.

git-svn-id: http://svn.redmine.org/redmine/trunk@12856 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-02-07 11:45:25 +00:00
parent 3d64938adc
commit 98cbbdf7f1
2 changed files with 0 additions and 5 deletions

View File

@ -431,10 +431,6 @@ class ApplicationController < ActionController::Base
format.html {
render :template => 'common/error', :layout => use_layout, :status => @status
}
format.js {
# Can't use an error status here, browsers wouldn't execute the JS response
render :template => 'common/error', :layout => false, :status => 200
}
format.any { head @status }
end
end

View File

@ -1 +0,0 @@
alert("<%= raw escape_javascript @message %> (<%= raw escape_javascript @status.to_s %>)");