Skip to content

Commit

Permalink
Select adapt-it#559
Browse files Browse the repository at this point in the history
Trigger focus/select events on the book name after successful import.
  • Loading branch information
eb1 committed Feb 20, 2024
1 parent 3cbdab5 commit f92f1c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/js/views/DocumentViews.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit f92f1c0

Please sign in to comment.