Orbit/app/views/admin/asset_categories/update.js.erb

4 lines
314 B
Plaintext
Raw Normal View History

2012-05-16 03:07:11 +00:00
$("#<%= dom_id @asset_category %>").replaceWith("<%= j render :partial => 'asset_category', :collection => [@asset_category] %>");
<% @asset_category = AssetCategory.new(:display => 'List') # reset for new form %>
$(".edit_asset_category").replaceWith("<%= j render "form" %>")
$(".new_asset_category")[0].reset();