Sha256: f4ac217a1ebb59fe4332262784a4105e2b33a2b4b331deba4ee3fbb1ac8bc566
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
<%% if @<%= singular_table_name %>.valid? %> hideModal(); if ($(".<%= plural_table_name %>.list").length) { $("#<%%= dom_id @<%= singular_table_name %> %>").replaceWith("<%%= j render(@<%= singular_table_name %>) %>"); $("#<%%= dom_id @<%= singular_table_name %> %>").effect("highlight"); } else { window.location.href = "<%%= url_for @<%= singular_table_name %> %>"; } <%% else %> $("#errorExplanation").remove(); $("<%%= j error_messages_for("<%= singular_table_name %>") %>").prependTo("#edit_<%= singular_table_name %>_<%%= @<%= singular_table_name %>.id %>"); <%% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redmine-generators-0.0.1 | lib/redmine/generators/templates/rails/scaffold/update.js.erb |