diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-08-17 09:19:40 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-08-17 09:21:28 -0400 |
commit | 4b1b6bed60f634985341bfc60f60d4dd3dbbd72a (patch) | |
tree | ee5a621d88469b0bcaae3ac42b4ed3206fd7d175 | |
parent | 2320796cc28985a3389d5f683e2bc44ec663c8dc (diff) | |
download | pfsense-4b1b6bed60f634985341bfc60f60d4dd3dbbd72a.zip pfsense-4b1b6bed60f634985341bfc60f60d4dd3dbbd72a.tar.gz |
diag-edit.php: Perform "Goto line #" action on pressing enter key within the line number element
(cherry picked from commit 86e94becbec130f9eeca5bc94b497ec1167a640a)
-rw-r--r-- | src/usr/local/www/diag_edit.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/usr/local/www/diag_edit.php b/src/usr/local/www/diag_edit.php index 030045d..667267b 100644 --- a/src/usr/local/www/diag_edit.php +++ b/src/usr/local/www/diag_edit.php @@ -242,7 +242,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(""); @@ -439,6 +447,7 @@ var Base64 = { loadFile(); }); <?php endif; ?> + //]]> </script> |