summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_edit.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-08-17 09:19:40 -0400
committerStephen Beaver <sbeaver@netgate.com>2016-08-17 09:21:28 -0400
commit4b1b6bed60f634985341bfc60f60d4dd3dbbd72a (patch)
treeee5a621d88469b0bcaae3ac42b4ed3206fd7d175 /src/usr/local/www/diag_edit.php
parent2320796cc28985a3389d5f683e2bc44ec663c8dc (diff)
downloadpfsense-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)
Diffstat (limited to 'src/usr/local/www/diag_edit.php')
-rw-r--r--src/usr/local/www/diag_edit.php11
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>
OpenPOWER on IntegriCloud