From f92f1c043a64bfaa24dffee8d48883639bed102f Mon Sep 17 00:00:00 2001 From: Erik Brommers Date: Tue, 20 Feb 2024 11:02:58 -0800 Subject: [PATCH] Select #559 Trigger focus/select events on the book name after successful import. --- www/js/views/DocumentViews.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/js/views/DocumentViews.js b/www/js/views/DocumentViews.js index b2bd07f6..78ba5312 100644 --- a/www/js/views/DocumentViews.js +++ b/www/js/views/DocumentViews.js @@ -287,6 +287,9 @@ define(function (require) { $("#verifyNameControls").show(); $("#lblDirections").html(i18n.t("view.dscStatusImportSuccess", {document: fileName})); $("#BookName").val(bookName); + // select the book name text + $("#BookName").trigger("focus"); + $("#BookName").trigger("select"); } // display the OK button $("#OK").removeClass("hide");