Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 5b529ee

Browse files
authored
Go to line on typing line num, focus if submit
1 parent 56738ab commit 5b529ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,12 @@
304304
</div>
305305
<input type="hidden" name="csrf" value="<?php echo $_SESSION["csrf"]; ?>">
306306
</form>
307-
<form onSubmit="return ICEcoder.goToLine()">
307+
<form onSubmit="return ICEcoder.goToLine(top.get('goToLineNo').value, 0, false)">
308308
<div class="codeAssist" title="<?php echo $t['Turn on/off...'];?>">
309309
<input type="checkbox" name="codeAssist" id="codeAssist" class="codeAssistCheckbox" <?php if ($ICEcoder['codeAssist']) {echo 'checked ';};?>>
310310
<span class="codeAssistDisplay" id="codeAssistDisplay" style="background-position: <?php echo $ICEcoder['codeAssist'] ? "0" : "-16";?> 0" onClick="top.ICEcoder.codeAssistToggle()"></span> <?php echo $t['Code Assist'];?>
311311
</div>
312-
<div class="goLine"><?php echo $t['Go to Line'];?> <input type="text" name="goToLine" value="" id="goToLineNo" class="textbox goToLine">
312+
<div class="goLine"><?php echo $t['Go to Line'];?> <input type="text" name="goToLine" value="" id="goToLineNo" onkeyup="ICEcoder.goToLine(this.value, 0, true)" class="textbox goToLine">
313313
<div class="view" title="<?php echo $t['View'];?>" onClick="top.ICEcoder.openPreviewWindow()" id="fMView"></div>
314314
<div class="bug" title="<?php echo $t['Bug reporting not active'];?>" onClick="top.ICEcoder.openBugReport()" id="bugIcon"></div>
315315
<div class="minimapLink" onclick="top.ICEcoder.docExplorerShow('miniMap')"></div>

0 commit comments

Comments
 (0)