From 13bcd5d244e1ac07f56d9548d9ecf9f37a230150 Mon Sep 17 00:00:00 2001 From: Harry Foster Date: Wed, 4 Jan 2023 16:19:48 +0000 Subject: [PATCH] Updated device key save to be a submit function for the form. (#6524) The reason for this is the default behaviour for 'return' or 'enter' is to delete the device entirely. This makes using a barcode scanner impossible, or user error resulting in a lot of lost time. --- app/devices/device_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index d7dce45f8f..3fdb4a4bc3 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -883,7 +883,7 @@ echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$_SESSION['theme']['button_icon_delete'],'name'=>'btn_delete','onclick'=>"modal_open('modal-delete','btn_delete');"]); } } - echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'id'=>'btn_save','style'=>'margin-left: 15px;','onclick'=>'submit_form();']); + echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'id'=>'btn_save','style'=>'margin-left: 15px;','onclick'=>'submit_form();']); echo " \n"; echo "
\n"; echo "\n";