Make async

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2017-03-26 15:26:10 +02:00
parent 980ef89dbf
commit fea2108710
No known key found for this signature in database
GPG key ID: B9F6980CF6E759B1

View file

@ -374,8 +374,7 @@ var OCP = {},
success: function (content) {
eval(content);
ready();
},
async: false
}
});
} else {
deferred = jQuery.ajax({
@ -383,8 +382,7 @@ var OCP = {},
cache: true,
success: function (content) {
eval(content);
},
async: false
}
});
}
OC.addScript.loaded[path] = deferred;