Merge pull request #77 from UnRAIDES/async

Async
This commit is contained in:
Mcklaren 2023-05-15 22:42:12 +02:00 committed by GitHub
commit 3d132a67dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -67,7 +67,7 @@ foreach ($pkgs_github_array as $pkg_github) {
$pkg = [
'name' => str_replace("_nerdtools.txz",".txz",$pkg_github['name']) , // add full package name
'dependencies' => $depends_file_array[$pkg_name] ? str_replace(array(" ",","), array("",", "), $depends_file_array[$pkg_name]) : '', // add package name only
'dependencies' => $depends_file_array[$pkg_name] ?? "" ? str_replace(array(" ",","), array("",", "), $depends_file_array[$pkg_name]) : '',
'pkgname' => $pkg_name, // add package name only
'pkgnver' => $pkg_nver, // add package name with underscored version
'pkgversion' => $pkg_version, // add package name with raw version

View File

@ -135,6 +135,9 @@ function Apply() {
function checkDepends() {
try {
$.ajaxSetup({
async: false
});
$.getJSON('/plugins/NerdTools/include/CheckDepends.php', function(data) {
console.log(data)
$.each(data,function(index, value){