Created
October 7, 2018 22:56
-
-
Save Elise-Lennion/093982d17b0f064c2c1bacc552e8161c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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