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-1.5.13 app/views/crud/create.js.erb
templus_models-1.5.12 app/views/crud/create.js.erb
templus_models-1.5.11 app/views/crud/create.js.erb
templus_models-1.5.10 app/views/crud/create.js.erb
templus_models-1.5.9 app/views/crud/create.js.erb
templus_models-1.5.8 app/views/crud/create.js.erb
templus_models-1.5.7 app/views/crud/create.js.erb
templus_models-1.5.6 app/views/crud/create.js.erb
templus_models-1.5.5 app/views/crud/create.js.erb
templus_models-1.5.4 app/views/crud/create.js.erb
templus_models-1.5.3 app/views/crud/create.js.erb
templus_models-1.5.2 app/views/crud/create.js.erb
templus_models-1.5.1 app/views/crud/create.js.erb
templus_models-1.5.0 app/views/crud/create.js.erb
templus_models-1.4.4 app/views/crud/create.js.erb
templus_models-1.4.3 app/views/crud/create.js.erb