mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-26 01:42:16 +00:00
Prevent modal inception
This commit is contained in:
@@ -172,12 +172,14 @@
|
|||||||
<script>
|
<script>
|
||||||
jQuery(document).ready(function () {
|
jQuery(document).ready(function () {
|
||||||
jQuery(document).on('click', '.modal-href', function (e) {
|
jQuery(document).on('click', '.modal-href', function (e) {
|
||||||
e.preventDefault()
|
$link = jQuery(this);
|
||||||
modaltarget = jQuery(this).data('target')
|
// Anti modal inception
|
||||||
modalobject = "";
|
if($link.parents('#modal').length == 0) {
|
||||||
jQuery('#modal').load(jQuery(this).attr('href'), function (e) {
|
e.preventDefault();
|
||||||
jQuery('#modal').modal();
|
jQuery('#modal').load($link.attr('href'), function (e) {
|
||||||
});
|
jQuery('#modal').modal();
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user