From 4dec10796a53271ce9a1be4a24725cf126039d53 Mon Sep 17 00:00:00 2001 From: Etienne Studer Date: Fri, 22 May 2020 22:23:11 +0200 Subject: [PATCH] Polish text some more --- .../buildServerResources/admin/buildScan.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/resources/buildServerResources/admin/buildScan.js b/src/main/resources/buildServerResources/admin/buildScan.js index 67629a5d..ffb2705a 100644 --- a/src/main/resources/buildServerResources/admin/buildScan.js +++ b/src/main/resources/buildServerResources/admin/buildScan.js @@ -1,21 +1,21 @@ BS.BuildScan = { startCleanup: function () { - $('cleanupResult').style.visibility = 'visible' $('startBuildScanCleanupButton').disabled = true - $('progressRing').style.visibility = 'visible' $('cleanupResult').textContent = 'Cleanup is running...'; + $('cleanupResult').style.visibility = 'visible' + $('progressRing').style.visibility = 'visible' BS.ajaxRequest('/admin/buildScanCleanup.html', { method: 'POST', onComplete: function (res) { $('progressRing').style.visibility = 'hidden' - $('startBuildScanCleanupButton').disabled = false if (res.status === 200) { - $('cleanupResult').textContent = 'Cleanup was successful'; + $('cleanupResult').textContent = 'Cleanup successful'; } else { - $('cleanupResult').textContent = 'Failed to execute cleanup - check the server logs' + $('cleanupResult').textContent = 'Cleanup failed - check the server logs for details' } + $('startBuildScanCleanupButton').disabled = false } }); return false; } -} \ No newline at end of file +}