From 8db879ea2f3abfede138b42b7493613924880503 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 13 Mar 2021 13:25:15 +0530 Subject: [PATCH] webapp: added set focus to text input. --- DnsServerCore/www/js/apps.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DnsServerCore/www/js/apps.js b/DnsServerCore/www/js/apps.js index 226fa2e9..deb1f284 100644 --- a/DnsServerCore/www/js/apps.js +++ b/DnsServerCore/www/js/apps.js @@ -81,6 +81,10 @@ function showInstallAppModal() { $("#btnInstallApp").button("reset"); $("#modalInstallApp").modal("show"); + + setTimeout(function () { + $("#txtInstallApp").focus(); + }, 1000); } function installApp() { @@ -177,6 +181,10 @@ function showAppConfigModal(objBtn, appName) { $("#btnAppConfig").button("reset"); $("#modalAppConfig").modal("show"); + + setTimeout(function () { + $("#txtAppConfig").focus(); + }, 1000); }, error: function () { btn.button('reset');