From 529a435030b7c5149820947dfbee14d2cb802f5b Mon Sep 17 00:00:00 2001 From: Mark W <24956497+ndg63276@users.noreply.github.com> Date: Wed, 8 Nov 2023 13:31:04 +0000 Subject: [PATCH] LIMS-693: Give Name text field default focus in Add New Shipment view (#650) Co-authored-by: Mark Williams --- client/src/js/modules/shipment/views/shipmentadd.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/js/modules/shipment/views/shipmentadd.js b/client/src/js/modules/shipment/views/shipmentadd.js index c22092566..e97886ede 100644 --- a/client/src/js/modules/shipment/views/shipmentadd.js +++ b/client/src/js/modules/shipment/views/shipmentadd.js @@ -155,6 +155,10 @@ define(['marionette', 'views/form', this.checkFCodes() }, + onShow: function() { + this.ui.name.focus() + }, + refreshDewars: function() { this.dewars.fetch() },