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

2 lines
167 B
Plaintext

$('<%= j render :partial => 'asset_category', :collection => [@asset_category] %>').appendTo('#asset_categories').hide().fadeIn();
$("#new_asset_category")[0].reset();