Files
old-holivud2/app/views/bookmarks/update.js.erb
2020-05-31 22:38:19 +02:00

9 lines
291 B
Plaintext

<% # 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"});