mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
diag-edit.php: Perform "Goto line #" action on pressing enter key within the line number element
This commit is contained in:
parent
03d4281714
commit
86e94becbe
@ -210,7 +210,15 @@ print_callout(gettext("The capabilities offered here can be dangerous. No suppor
|
||||
|
||||
showLine(tarea, gtl);
|
||||
});
|
||||
});
|
||||
|
||||
// Goto the specified line on pressing the Enter key within the "Goto line" input element
|
||||
$('#gotoline').keyup(function(e) {
|
||||
if(e.keyCode == 13) {
|
||||
$('#btngoto').click();
|
||||
}
|
||||
});
|
||||
|
||||
}); // e-o-events.push()
|
||||
|
||||
function loadFile() {
|
||||
$("#fileStatus").html("");
|
||||
@ -407,6 +415,7 @@ var Base64 = {
|
||||
loadFile();
|
||||
});
|
||||
<?php endif; ?>
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user