FEATURE: Confirmation Modal only grab clients initials for client side nav

This commit is contained in:
johnnyq
2023-09-05 18:26:15 -04:00
parent 316afa5603
commit 4b368ee5af
8 changed files with 43 additions and 27 deletions

View File

@@ -104,4 +104,21 @@ clipboard.on('error', function(e) {
// Enable Popovers
$(function () {
$('[data-toggle="popover"]').popover()
});
});
$(document).ready(function() {
$("a.confirm-link").click(function(e) {
e.preventDefault();
// Save the link reference to use after confirmation
var linkReference = this;
// Show the confirmation modal
$("#confirmationModal").modal('show');
// When the submission is confirmed via the modal
$("#confirmSubmitBtn").off('click').on('click', function() {
window.location.href = $(linkReference).attr('href');
});
});
});