app/views/crud/create.js.erb in templus_models-1.4.2 vs app/views/crud/create.js.erb in templus_models-1.4.3

- old
+ new

@@ -7,7 +7,10 @@ $(modal_target).attr('data-entity-name','<%=@record.to_s%>') $(modal_target).attr('data-entity-id','<%=@record.id%>') $(modal_target).modal('hide') <%else%> $("#modal_new_record.<%=@model.name.underscore%> .modal-body").html("<%=j render('edit')%>") + if(window.hasOwnProperty("atualiza_campos_crud")){ + atualiza_campos_crud(); + } <%end%> <%end%> \ No newline at end of file