mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Added data-toggle='ajax-modal' to trigger the ajax modal instead, also added an ajax header and and footer to dedup code
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
Edit Contact
|
||||
</button>
|
||||
*/
|
||||
$(document).on('click', '.ajax-trigger', function (e) {
|
||||
$(document).on('click', '[data-toggle="ajax-modal"]', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
// Get the URL and ID from the element's data attributes.
|
||||
@@ -65,4 +65,4 @@ $(document).on('click', '.ajax-trigger', function (e) {
|
||||
alert('Error loading modal content.');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user