mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Adds check if request has model_id, if so call fetchCustomFields on document ready
This commit is contained in:
parent
b44f27dafa
commit
1b45170ca3
|
@ -158,6 +158,12 @@
|
|||
|
||||
<script nonce="{{ csrf_token() }}">
|
||||
|
||||
@if(Request::has('model_id'))
|
||||
$(document).ready(function() {
|
||||
fetchCustomFields()
|
||||
});
|
||||
@endif
|
||||
|
||||
var transformed_oldvals={};
|
||||
|
||||
function fetchCustomFields() {
|
||||
|
@ -370,4 +376,4 @@
|
|||
|
||||
|
||||
</script>
|
||||
@stop
|
||||
@stop
|
Loading…
Reference in a new issue