diff options
author | Josh Goodall <joshua.goodall@gmail.com> | 2017-05-16 20:21:18 +1000 |
---|---|---|
committer | Josh Goodall <joshua.goodall@gmail.com> | 2017-05-17 08:40:54 +1000 |
commit | 4be50a4a455a027e228dbd8acf09e0fb786929ec (patch) | |
tree | a73e3fc8d673899719ab86794e5e976539004192 /actionview/app/assets/javascripts/rails-ujs | |
parent | 0714251b2d0d422dc3ffc852eeb604281195b0c2 (diff) | |
download | rails-4be50a4a455a027e228dbd8acf09e0fb786929ec.tar.gz rails-4be50a4a455a027e228dbd8acf09e0fb786929ec.tar.bz2 rails-4be50a4a455a027e228dbd8acf09e0fb786929ec.zip |
Fix server-generated JS response processing on IE9 when using rails-ujs and remote: true
Diffstat (limited to 'actionview/app/assets/javascripts/rails-ujs')
-rw-r--r-- | actionview/app/assets/javascripts/rails-ujs/utils/ajax.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/app/assets/javascripts/rails-ujs/utils/ajax.coffee b/actionview/app/assets/javascripts/rails-ujs/utils/ajax.coffee index 26df7b9a3f..a653d3af3d 100644 --- a/actionview/app/assets/javascripts/rails-ujs/utils/ajax.coffee +++ b/actionview/app/assets/javascripts/rails-ujs/utils/ajax.coffee @@ -14,7 +14,7 @@ AcceptHeaders = Rails.ajax = (options) -> options = prepareOptions(options) xhr = createXHR options, -> - response = processResponse(xhr.response, xhr.getResponseHeader('Content-Type')) + response = processResponse(xhr.response ? xhr.responseText, xhr.getResponseHeader('Content-Type')) if xhr.status // 100 == 2 options.success?(response, xhr.statusText, xhr) else |