From 08ab5be356e12591b03f358cb76e307fd516db37 Mon Sep 17 00:00:00 2001 From: Akif Eyler Date: Mon, 8 Jul 2024 21:59:01 +0300 Subject: [PATCH] sura name in input dialog --- code/common.js | 5 ++--- code/reader.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/code/common.js b/code/common.js index 0a7e7dc..4d11a47 100644 --- a/code/common.js +++ b/code/common.js @@ -3,7 +3,7 @@ /** * The code version. */ -const VERSION = "V4.8b"; +const VERSION = "V4.8c"; /** *   used in Mujam and VerseRef @@ -249,8 +249,7 @@ class Notes { } function setFocus(elt) { if (!elt || elt.value == undefined) return - elt.selectionEnd = elt.value.length - elt.selectionStart = 0; elt.focus() + elt.focus(); elt.select() } /** diff --git a/code/reader.js b/code/reader.js index 3edcd4d..2cf5456 100644 --- a/code/reader.js +++ b/code/reader.js @@ -649,7 +649,7 @@ function makeStarMenu() { function handlePageNum() { bkgd.style.display = "block" //input defined in search.js - input.value = curPage || "1" + input.value = curSura+' ' inputKey(); setFocus(input) recog0.style.display = (recognition && navigator.onLine)? '' : 'none'