Sha256: 4d7cdef8a5446cf186d20e5c4ef88efb13becb46a99720f68276992157723970

Contents?: true

Size: 672 Bytes

Versions: 21

Compression:

Stored size: 672 Bytes

Contents

<%% if @<%= @model.singular_name %>.errors.any? %>
	$("#mdwa_error").html("<%%= escape_javascript( render '/template/mdwa/crud_error', :object => @<%= @model.singular_name %> )%>");
<%% else %>
	if( $('#<%= @model.plural_name %>_list').length > 0 ) {
		$.fancybox.close(true);
		$("#<%= @model.plural_name %>_list").html("<%%= escape_javascript( render '<%= @model.plural_name %>' )%>");
	}
	else if( $("#edit_<%= @model.plural_name %>").length > 0 ) {
		$("#edit_<%= @model.plural_name %> .inside").html("<%%= escape_javascript( render 'form' )%>");
	}
	$('body').append("<%%= escape_javascript( render '/template/mdwa/notice', :notice => @system_notice )%>");
<%% end %>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
mdd-3.0.1 lib/generators/mdwa/user/templates/views/update.js.erb