From bcc86e160f4cb9ea73e4d30494971a141342de82 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 4 May 2013 15:14:38 +0100 Subject: [PATCH] Pass find value to function as 1st param Instead of passing thru a string that never gets used (the 1st param here is put under the action variable, but then never used), now the 1st param is the string to consider as the find. In these cases, it's obviously whatever is in the find input box. --- editor.php | 2 +- index.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/editor.php b/editor.php index e57e9f3..719d46a 100644 --- a/editor.php +++ b/editor.php @@ -143,7 +143,7 @@ function createNewCMInstance(num) { keyMap: "ICEcoder", onKeyEvent: function(thisCM, e) { top.ICEcoder.redoChangedContent(e); - top.ICEcoder.findReplace('find',true,false); + top.ICEcoder.findReplace(top.document.getElementById('find').value,true,false); top.ICEcoder.getCaretPosition(); top.ICEcoder.updateCharDisplay(); tok = thisCM.getTokenAt(thisCM.getCursor()); diff --git a/index.php b/index.php index 9eb9181..612554a 100644 --- a/index.php +++ b/index.php @@ -153,10 +153,10 @@ if (file_exists(dirname(__FILE__)."/plugins/jshint/jshint.js")) { ?>
-
+
Find
- +