Sha256: de15c9646cae9c20031c58f55762ce81758a4d68d5ba945e2ea4e39546bdd7dc

Contents?: true

Size: 644 Bytes

Versions: 12

Compression:

Stored size: 644 Bytes

Contents

<% if object.errors.any? %>
<% pass_through_locals ||= {} %>
$(".<%= singular %>-table tr[data-id=<%= object.id %>][data-edit='true']").html("<%= j render partial: 'edit', locals: {singular.to_sym => object, url: url, colspan: controller.default_colspan}.merge(pass_through_locals || {}) %>")

$(".flash-notices").html("<%= j render 'layouts/flash_notices' %>");
<% else %>
$(".<%= singular %>-table tr[data-id=<%= object.id %>]:not([data-edit='true'])").replaceWith("<%= j render partial: 'line', locals: {singular.to_sym => object } %>").fadeIn()
$(".<%= singular %>-table tr[data-id=<%= object.id %>][data-edit='true']").remove();
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
common_core_js-0.4.7 app/views/common/_common_update.js.erb
common_core_js-0.4.6 app/views/common/_common_update.js.erb
common_core_js-0.4.4 app/views/common/_common_update.js.erb
common_core_js-0.4.3 app/views/common/_common_update.js.erb
common_core_js-0.4.2 app/views/common/_common_update.js.erb
common_core_js-0.4.1 app/views/common/_common_update.js.erb
common_core_js-0.4.0 app/views/common/_common_update.js.erb
common_core_js-0.3.9 app/views/common/_common_update.js.erb
common_core_js-0.3.8 app/views/common/_common_update.js.erb
common_core_js-0.3.7 app/views/common/_common_update.js.erb
common_core_js-0.3.6 app/views/common/_common_update.js.erb
common_core_js-0.3.5 app/views/common/_common_update.js.erb