Skip to content

Instantly share code, notes, and snippets.

@Elise-Lennion
Created October 7, 2018 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elise-Lennion/093982d17b0f064c2c1bacc552e8161c to your computer and use it in GitHub Desktop.
Save Elise-Lennion/093982d17b0f064c2c1bacc552e8161c to your computer and use it in GitHub Desktop.
$(document).on('click', '.confirm-delete', function () {
$("#confirmDeleteModal").attr("caller-id", $(this).attr("id"));
});
$(document).on('click', '#confirmDeleteButtonModal', function () {
var caller = $("#confirmDeleteButtonModal").closest(".modal").attr("caller-id");
window.location = $("#".concat(caller)).attr("href");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment