Initial commit
This commit is contained in:
5
app/views/bookmarks/destroy.js.erb
Normal file
5
app/views/bookmarks/destroy.js.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
$("#video_bookmarks tr#<%= dom_id(@bookmark) %>").remove();
|
||||
|
||||
<% unless @bookmarks.any? %>
|
||||
$("#video_bookmarks").html("<%= j render(partial: 'empty_bookmarks') %>");
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user