diff --git a/src/usr/local/www/diag_edit.php b/src/usr/local/www/diag_edit.php index 7f8a5dc3da..e99aca8f99 100644 --- a/src/usr/local/www/diag_edit.php +++ b/src/usr/local/www/diag_edit.php @@ -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(); }); + //]]>