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

9 lines
291 B
Plaintext
Raw Normal View History

2020-05-31 22:38:19 +02:00
<% # Remove the modal if it already exists %>
$("#edit_bookmark_modal").toggle();
$(".modal-backdrop").remove();
<% # Create and show the modal %>
$("#video_bookmarks").html("<%= j render @bookmarks %>");
<%# Replacing html removes the scroll bar %>
$("body").css({"overflow": "visible"});