From c742e9db8a0db88c008c3ed7129e832ab1fb85f1 Mon Sep 17 00:00:00 2001 From: mattpass Date: Fri, 19 Jun 2020 07:20:50 +0100 Subject: [PATCH] index.php and lib/multiple-results.up updates re find & replace --- index.php | 7 ++++--- lib/multiple-results.php | 9 +++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index a14499d..39f8199 100644 --- a/index.php +++ b/index.php @@ -286,7 +286,7 @@ $t = $text['index']; ?>
+
-
+
@@ -316,8 +316,9 @@ $t = $text['index'];
- - + + +
"> diff --git a/lib/multiple-results.php b/lib/multiple-results.php index 8f9b336..a594bae 100644 --- a/lib/multiple-results.php +++ b/lib/multiple-results.php @@ -266,8 +266,13 @@ if (true === isset($_GET['target']) && false !== strpos($_GET['target'], "filena parent.document.findAndReplace.connector.selectedIndex = 0; parent.ICEcoder.findReplaceOptions(); parent.document.findAndReplace.target.selectedIndex = 0; - // Submit to select first instance - parent.ICEcoder.findReplace(parent.document.getElementById('find').value, false, true, false); + // Re-show the results stats + parent.document.getElementById('results').style.display = 'inline-block'; + // Action the find and then focus on find input box + setTimeout(function() { + parent.ICEcoder.findReplace(parent.document.getElementById('find').value, true, false, false); + parent.document.getElementById("find").focus(); + }, 0); };