Sha256: abb7b5de808a160925e0c1888b9a079b67db48591d98068eeff05bf9de956bed

Contents?: true

Size: 583 Bytes

Versions: 56

Compression:

Stored size: 583 Bytes

Contents

<%unless params[:render] == 'modal'%>
	$('#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-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%>

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
templus_models-3.0.21 app/views/crud/create.js.erb
templus_models-3.0.20 app/views/crud/create.js.erb
templus_models-3.0.19 app/views/crud/create.js.erb
templus_models-3.0.17 app/views/crud/create.js.erb
templus_models-2.0.16 app/views/crud/create.js.erb
templus_models-1.6.9 app/views/crud/create.js.erb
templus_models-2.0.15 app/views/crud/create.js.erb
templus_models-3.0.14 app/views/crud/create.js.erb
templus_models-2.0.14 app/views/crud/create.js.erb
templus_models-2.0.12 app/views/crud/create.js.erb
templus_models-3.0.13 app/views/crud/create.js.erb
templus_models-3.0.12 app/views/crud/create.js.erb
templus_models-2.0.11 app/views/crud/create.js.erb
templus_models-2.0.9 app/views/crud/create.js.erb
templus_models-2.0.8 app/views/crud/create.js.erb
templus_models-3.0.10 app/views/crud/create.js.erb
templus_models-1.6.8 app/views/crud/create.js.erb
templus_models-1.6.7 app/views/crud/create.js.erb
templus_models-3.0.9 app/views/crud/create.js.erb
templus_models-2.0.7 app/views/crud/create.js.erb