Adds check if request has model_id, if so call fetchCustomFields on document ready

This commit is contained in:
Mike Roquemore 2022-07-01 20:15:11 -05:00
parent b44f27dafa
commit 1b45170ca3

View file

@ -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