personal-book/app/views/admin/books/update_book_setting.js.erb

9 lines
401 B
Plaintext

<% if !@book_type.blank? %>
$("#myModal1").modal('hide');
$("#<%= dom_id @book_type %>").replaceWith("<%= j render :partial => 'list_book_type', :collection => [@book_type] %>");
<% end %>
<% if !@book_author_type.blank? %>
$("#myModal2").modal('hide');
$("#<%= dom_id @book_author_type %>").replaceWith("<%= j render :partial => 'list_author_type', :collection => [@book_author_type] %>");
<% end %>