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

9 lines
323 B
Plaintext

$("[data-toggle=tooltip]").tooltip("dispose");
<% # Remove the modal if it already exists %>
$("#edit_bookmark_modal").remove();
$("#new_bookmark_modal").remove();
<% # Create and show the modal %>
$("body").append("<%= j render('edit_bookmark_modal', bookmark: @bookmark) %>");
$("#edit_bookmark_modal").modal("toggle");