Sha256: 27768b5ec2558bfb22ecff800cbb19ba0b0291d84dcdbcf55ae28f677c37b40e

Contents?: true

Size: 636 Bytes

Versions: 19

Compression:

Stored size: 636 Bytes

Contents

<% if object.errors.none? %>
$(".<%= singular %>-list table tr[data-id=<%= object.id %>]").css({color: 'red', 'text-decoration': 'line-through'});
$(".<%= singular %>-list table tr[data-id=<%= object.id %>]").fadeOut(750,function () {
  $(".<%= singular %>-list").html("<%= j render partial: "list", locals: {plural.to_sym => all_objects} %>")
})

<% else  %>
$(".flash-notices").html("<%= j render 'layouts/flash_notices' %>");
$(".<%= singular %>-list").html("<%= j render(partial: '#{controller.namespace}errors', locals: {resource: object}) %><br/<%= j render partial: "list", locals: {plural.to_sym => all_objects} %>")
<% end %>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
common_core_js-0.4.7 app/views/common/_common_destroy.js.erb
common_core_js-0.4.6 app/views/common/_common_destroy.js.erb
common_core_js-0.4.4 app/views/common/_common_destroy.js.erb
common_core_js-0.4.3 app/views/common/_common_destroy.js.erb
common_core_js-0.4.2 app/views/common/_common_destroy.js.erb
common_core_js-0.4.1 app/views/common/_common_destroy.js.erb
common_core_js-0.4.0 app/views/common/_common_destroy.js.erb
common_core_js-0.3.9 app/views/common/_common_destroy.js.erb
common_core_js-0.3.8 app/views/common/_common_destroy.js.erb
common_core_js-0.3.7 app/views/common/_common_destroy.js.erb
common_core_js-0.3.6 app/views/common/_common_destroy.js.erb
common_core_js-0.3.5 app/views/common/_common_destroy.js.erb
common_core_js-0.3.4 app/views/common/_common_destroy.js.erb
common_core_js-0.3.3 app/views/common/_common_destroy.js.erb
common_core_js-0.3.2 app/views/common/_common_destroy.js.erb
common_core_js-0.3.1 app/views/common/_common_destroy.js.erb
common_core_js-0.3.0 app/views/common/_common_destroy.js.erb
common_core_js-0.1.1 app/views/common/_common_destroy.js.erb
common_core_js-0.1.0 app/views/common/_common_destroy.js.erb