mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Back-port https://github.com/silverstripe/silverstripe-admin/pull/769 to 3.7, fix parsererror issue
This commit is contained in:
parent
5123361b5b
commit
ad3c58f2d8
@ -109,10 +109,13 @@
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
dataType: 'script',
|
dataType: 'script',
|
||||||
url: newJsInclude,
|
url: newJsInclude,
|
||||||
success: function() {
|
complete: function() {
|
||||||
self._ondemand_loaded_list[newJsInclude] = 1;
|
self._ondemand_loaded_list[newJsInclude] = 1;
|
||||||
getScriptQueue();
|
getScriptQueue();
|
||||||
},
|
},
|
||||||
|
error: function(xhr, status, error) {
|
||||||
|
console.error(error);
|
||||||
|
},
|
||||||
cache: false,
|
cache: false,
|
||||||
// jQuery seems to override the XHR objects if used in async mode
|
// jQuery seems to override the XHR objects if used in async mode
|
||||||
async: false
|
async: false
|
||||||
|
Loading…
Reference in New Issue
Block a user