diag-edit.php: Perform "Goto line #" action on pressing enter key within the line number element

This commit is contained in:
Stephen Beaver 2016-08-17 09:19:40 -04:00
parent 03d4281714
commit 86e94becbe

View File

@ -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>