From 2764e955b2a114df0b07e967666697eceb9c3764 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Mon, 15 Mar 2021 17:06:23 +0000 Subject: [PATCH] Show success alert on plugin download page --- public/js/plugin-download.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/js/plugin-download.js b/public/js/plugin-download.js index e1fba96..a335e03 100644 --- a/public/js/plugin-download.js +++ b/public/js/plugin-download.js @@ -126,9 +126,7 @@ const download = () => { } const successCount = parseInt(data.success); const failCount = parseInt(data.fail); - UIkit.modal.confirm(`${successCount} of ${successCount + failCount} chapters added to the download queue. Proceed to the download manager?`).then(() => { - window.location.href = base_url + 'admin/downloads'; - }); + alert('success', `${successCount} of ${successCount + failCount} chapters added to the download queue. You can view and manage your download queue on the download manager page.`); }) .fail((jqXHR, status) => { alert('danger', `Failed to add chapters to the download queue. Error: [${jqXHR.status}] ${jqXHR.statusText}`);