tap/app/views/products/update.js.haml

6 lines
253 B
Text
Raw Normal View History

2015-09-17 14:05:33 +02:00
- if @product.errors.any?
$('#products-errors').html("#{j render 'errors', object: @product}")
- else
$('#products-errors').html('')
$("#products_row_#{dom_id(@product)}").replaceWith("#{j render 'products_list/product_row', product: @product}");