diff --git a/html/pages/device/edit/device.inc.php b/html/pages/device/edit/device.inc.php index b099ca454f..386ef062ef 100644 --- a/html/pages/device/edit/device.inc.php +++ b/html/pages/device/edit/device.inc.php @@ -132,7 +132,7 @@ if ($_POST['editing']) {
- override_sysLocation) { echo(' checked="1"'); @@ -236,6 +236,12 @@ if ($_POST['editing']) { document.getElementById('edit-hostname-input').disabled = true; } }); + $('#sysLocation').keypress(function (e) { + if(e.keyCode === 13) { + e.preventDefault(); + $('#edit').submit(); + } + }); $('#parent_id').select2({ width: 'resolve' });