From 7a02ef132239148cef4a66a538b7fa3fe42fb4d5 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 2 Oct 2021 12:58:53 +0530 Subject: [PATCH] apps.js: fixed minor bug in apps description rendering. minor refactoring changes done. --- DnsServerCore/www/js/apps.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DnsServerCore/www/js/apps.js b/DnsServerCore/www/js/apps.js index 1bad0304..c6c7d4a2 100644 --- a/DnsServerCore/www/js/apps.js +++ b/DnsServerCore/www/js/apps.js @@ -46,7 +46,7 @@ function refreshApps() { for (var j = 0; j < apps[i].dnsApps.length; j++) { var labels = ""; - var description; + var description = null; if (apps[i].dnsApps[j].isAppRecordRequestHandler) { labels += "APP Record"; @@ -264,7 +264,7 @@ function updateStoreApp(objBtn, appName, url, isModal) { function uninstallStoreApp(objBtn, appName) { if (!confirm("Are you sure you want to uninstall the DNS application '" + appName + "'?")) - return false; + return; var divStoreAppsAlert = $("#divStoreAppsAlert"); var btn = $(objBtn); @@ -312,7 +312,7 @@ function installApp() { if (fileAppZip[0].files.length === 0) { showAlert("warning", "Missing!", "Please select an application zip file to install.", divInstallAppAlert); fileAppZip.focus(); - return false; + return; } var formData = new FormData(); @@ -350,7 +350,7 @@ function updateApp() { if (fileAppZip[0].files.length === 0) { showAlert("warning", "Missing!", "Please select an application zip file to update.", divUpdateAppAlert); fileAppZip.focus(); - return false; + return; } var formData = new FormData(); @@ -382,7 +382,7 @@ function updateApp() { function uninstallApp(objBtn, appName) { if (!confirm("Are you sure you want to uninstall the DNS application '" + appName + "'?")) - return false; + return; var btn = $(objBtn);