mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Added Confirmation to Close Ticket in Client Portal - Seperated cofirmation modal to a seperate JS file which is now included in the Client Portal
This commit is contained in:
17
js/app.js
17
js/app.js
@@ -105,20 +105,3 @@ clipboard.on('error', function(e) {
|
||||
$(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