Skip to content

A free open source IT asset/license management system

Assets: Fixed #19229 - give first serial focus if cloning

snipef09f988fbf1f
diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.php
index f4c43e330c..1a2e676ef3 100755
--- a/resources/views/hardware/edit.blade.php
+++ b/resources/views/hardware/edit.blade.php
@@ -319,6 +319,9 @@
user_add($(".status_id").val());
});
+ @if (isset($cloned_model))
+ $('input[name="serials[1]"]').trigger('focus');
+ @endif
});