mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
FEATURE: Confirmation Modal only grab clients initials for client side nav
This commit is contained in:
19
js/app.js
19
js/app.js
@@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user