mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
index.php and lib/multiple-results.up updates re find & replace
This commit is contained in:
@@ -286,7 +286,7 @@ $t = $text['index'];
|
||||
?><div class="newTab" onClick="ICEcoder.newTab(false)" id="newTab">+</div>
|
||||
</div>
|
||||
<div id="findBar" class="findBar" oncontextmenu="return false">
|
||||
<form name="findAndReplace" onSubmit="ICEcoder.findReplace(document.getElementById('find').value, false, true, false); return false">
|
||||
<form name="findAndReplace" onsubmit="ICEcoder.findReplace(get('find').value, false, false, false); ICEcoder.getcMInstance().focus(); return false">
|
||||
<div class="findReplace">
|
||||
<div class="findText"><?php echo $t['Find'];?></div>
|
||||
<input type="text" name="find" value="" id="find" class="textbox find" oninput="ICEcoder.findReplaceOnInput()">
|
||||
@@ -316,8 +316,9 @@ $t = $text['index'];
|
||||
<option><?php echo $t['all filenames'];?></option>
|
||||
</select>
|
||||
</div>
|
||||
<input type="button" name="prev" value="<<" class="button" onclick="ICEcoder.findReplace(get('find').value, false, true, true);">
|
||||
<input type="button" name="next" value=">>" class="button" onclick="ICEcoder.findReplace(get('find').value, false, true, false);">
|
||||
<input type="button" name="prev" value="<<" class="button" onclick="ICEcoder.findReplace(get('find').value, true, true, true);">
|
||||
<input type="button" name="next" value=">>" class="button" onclick="ICEcoder.findReplace(get('find').value, true, true, false);">
|
||||
<input type="submit" name="sub" value="sub" style="display: none">
|
||||
<div class="results" id="results"></div>
|
||||
</div>
|
||||
<input type="hidden" name="csrf" value="<?php echo $_SESSION["csrf"]; ?>">
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user