From f88eb7e0f09f0dd6bd71723ea02b57eac881d7ee Mon Sep 17 00:00:00 2001 From: dingguodong Date: Fri, 14 Jun 2024 10:13:58 +0800 Subject: [PATCH] + [task#116512] Add the function to check upgrade in progress. --- module/backup/js/index.ui.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/module/backup/js/index.ui.js b/module/backup/js/index.ui.js index 8c9b4c8d18..400c6ac77e 100644 --- a/module/backup/js/index.ui.js +++ b/module/backup/js/index.ui.js @@ -171,3 +171,23 @@ window.deleteInProcess = function(backupName) }, 2000); } + +window.upgradeInProgress= function() +{ + if(!inQuickon) return false; + + loadTable(); + let intervalId = setInterval(function() + { + + $.get($.createLink('system', 'ajaxGetUpgradeProgress'), function(resp) + { + if(resp.result == 'success') + { + loadCurrentPage(); + clearInterval(intervalId); + } + }, 'json'); + + }, 2000); +} \ No newline at end of file