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

9 lines
395 B
Plaintext
Raw Normal View History

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