Skip to content

A free open source IT asset/license management system

Fixed #19302 - add focus to serials if auto increment is on

snipebe600921f4ad
diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.php
index c7a5c53bd5..be8e8de10e 100755
--- a/resources/views/hardware/edit.blade.php
+++ b/resources/views/hardware/edit.blade.php
@@ -320,7 +320,11 @@
});
@if (isset($cloned_model))
- $('input[name="serials[1]"]').trigger('focus');
+ @if ($snipeSettings->auto_increment_assets == '1')
+ $('input[name="serials[1]"]').trigger('focus');
+ @else
+ $('#asset_tag').trigger('focus');
+ @endif
@endif
});