Skip to content

Commit 78a4109

Browse files
committed
Revert "Merge pull request #9410 from jrafanie/fix-jquery-3-issue"
This reverts commit 1a9995f, reversing changes made to 9c35b43.
1 parent ca09745 commit 78a4109

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/javascript/oldjs/jquery_overrides.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $.ajaxSetup({
3636
return jQuery.parseJSON(text);
3737
});
3838
}),
39-
'text miq_script': logError(function(text) {
39+
'text script': logError(function(text) {
4040
if (text.match(/^{/)) {
4141
return jQuery.jsonPayload(text, function(text) {
4242
return text;

app/javascript/oldjs/miq_application.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,8 +1091,8 @@ window.miqJqueryRequest = function(url, options) {
10911091
};
10921092

10931093
if (options.dataType === undefined) {
1094-
ajax_options.accepts = { miq_script: `*/*;q=0.5, ${$.ajaxSettings.accepts.script}` };
1095-
ajax_options.dataType = 'miq_script';
1094+
ajax_options.accepts = { script: `*/*;q=0.5, ${$.ajaxSettings.accepts.script}` };
1095+
ajax_options.dataType = 'script';
10961096
}
10971097

10981098
// copy selected options over

0 commit comments

Comments
 (0)