Files
old-holivud2/app/views/bookmarks/create.js.erb

8 lines
257 B
Plaintext
Raw Normal View History

2020-05-31 22:38:19 +02:00
<% # Add a marker to the timeline %>
$(document).trigger("addBookmark-<%= @video.id %>", [<%= raw @bookmark.to_json %>]);
<% # Close the bookmark modal %>
$("#new_bookmark_modal").modal("toggle");
$("#video_bookmarks").html("<%= j render @bookmarks %>");