app/views/crud/create.js.erb in templus_models-1.4.1 vs app/views/crud/create.js.erb in templus_models-1.4.2
- old
+ new
@@ -2,12 +2,12 @@
$('#form').html("<%=j render('edit')%>")
<%else%>
<%if @saved %>
var modal_target = "#modal_new_record." + '<%=@model.name.underscore%>';
$(modal_target).attr('data-saved','true')
- $(modal_target).attr('data-entity-name','<%=@record.to_s%>')
+ $(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')%>")
- <%end%>
+ $("#modal_new_record.<%=@model.name.underscore%> .modal-body").html("<%=j render('edit')%>")
+ <%end%>
<%end%>
\ No newline at end of file