Merge pull request #8920 from tractorcow/pulls/3.7/backport-parsererror-fix

BUG Back-port silverstripe-admin#769 to 3.7
This commit is contained in:
Robbie Averill 2019-04-15 14:38:17 +12:00 committed by GitHub
commit e57beefb43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,10 +109,13 @@
$.ajax({
dataType: 'script',
url: newJsInclude,
success: function() {
complete: function() {
self._ondemand_loaded_list[newJsInclude] = 1;
getScriptQueue();
},
error: function(xhr, status, error) {
console.error(error);
},
cache: false,
// jQuery seems to override the XHR objects if used in async mode
async: false