apply z-index fix to all modals
This commit is contained in:
@@ -235,4 +235,13 @@ $(document).ready(function() {
|
|||||||
to_id.replace(/^#/,"").replace(/_pane$/,"")
|
to_id.replace(/^#/,"").replace(/_pane$/,"")
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// bootstrap modal mucks about with mouse actions on higher elements
|
||||||
|
// so need to bury and raise it when needed
|
||||||
|
$('.tab-pane').on('show', '.nd_modal', function () {
|
||||||
|
$(this).toggleClass('nd_deep-horizon');
|
||||||
|
});
|
||||||
|
$('.tab-pane').on('hidden', '.nd_modal', function () {
|
||||||
|
$(this).toggleClass('nd_deep-horizon');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
<button class="btn" data-toggle="modal"
|
<button class="btn" data-toggle="modal"
|
||||||
data-target="#nd_devdel-[% count %]" type="button"><i class="icon-trash text-error"></i></button>
|
data-target="#nd_devdel-[% count %]" type="button"><i class="icon-trash text-error"></i></button>
|
||||||
|
|
||||||
<div id="nd_devdel-[% count %]" class="nd_modal modal hide fade" tabindex="-1"
|
<div id="nd_devdel-[% count %]" class="nd_modal nd_deep-horizon modal hide fade" tabindex="-1"
|
||||||
role="dialog" aria-labelledby="nd_devdel-label-[% count %]" aria-hidden="true">
|
role="dialog" aria-labelledby="nd_devdel-label-[% count %]" aria-hidden="true">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
<button class="btn" data-toggle="modal"
|
<button class="btn" data-toggle="modal"
|
||||||
data-target="#nd_devdel-[% count %]" type="button"><i class="icon-trash text-error"></i></button>
|
data-target="#nd_devdel-[% count %]" type="button"><i class="icon-trash text-error"></i></button>
|
||||||
|
|
||||||
<div id="nd_devdel-[% count %]" class="nd_modal modal hide fade" tabindex="-1"
|
<div id="nd_devdel-[% count %]" class="nd_modal nd_deep-horizon modal hide fade" tabindex="-1"
|
||||||
role="dialog" aria-labelledby="nd_devdel-label-[% count %]" aria-hidden="true">
|
role="dialog" aria-labelledby="nd_devdel-label-[% count %]" aria-hidden="true">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
<button class="btn" data-toggle="modal"
|
<button class="btn" data-toggle="modal"
|
||||||
data-target="#nd_devdel-[% count %]" type="button"><i class="icon-trash text-error"></i></button>
|
data-target="#nd_devdel-[% count %]" type="button"><i class="icon-trash text-error"></i></button>
|
||||||
|
|
||||||
<div id="nd_devdel-[% count %]" class="nd_modal modal hide fade" tabindex="-1"
|
<div id="nd_devdel-[% count %]" class="nd_modal nd_deep-horizon modal hide fade" tabindex="-1"
|
||||||
role="dialog" aria-labelledby="nd_devdel-label-[% count %]" aria-hidden="true">
|
role="dialog" aria-labelledby="nd_devdel-label-[% count %]" aria-hidden="true">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
<button class="btn btn-danger btn-small pull-right"
|
<button class="btn btn-danger btn-small pull-right"
|
||||||
data-toggle="modal" data-target="#nd_devdel" type="button">Delete</button>
|
data-toggle="modal" data-target="#nd_devdel" type="button">Delete</button>
|
||||||
|
|
||||||
<div id="nd_devdel" class="nd_modal modal hide fade" tabindex="-1"
|
<div id="nd_devdel" class="nd_modal nd_deep-horizon modal hide fade" tabindex="-1"
|
||||||
role="dialog" aria-labelledby="nd_devdel-label" aria-hidden="true">
|
role="dialog" aria-labelledby="nd_devdel-label" aria-hidden="true">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
|
||||||
|
|||||||
@@ -168,5 +168,4 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -119,15 +119,6 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// bootstrap modal mucks about with mouse actions on higher elements
|
|
||||||
// so need to bury and raise it when needed
|
|
||||||
$('#ports_pane').on('show', '.nd_modal', function () {
|
|
||||||
$(this).toggleClass('nd_deep-horizon');
|
|
||||||
});
|
|
||||||
$('#ports_pane').on('hidden', '.nd_modal', function () {
|
|
||||||
$(this).toggleClass('nd_deep-horizon');
|
|
||||||
});
|
|
||||||
|
|
||||||
// clear any values in the delete confirm dialog
|
// clear any values in the delete confirm dialog
|
||||||
$('#details_pane').on('hidden', '.nd_modal', function () {
|
$('#details_pane').on('hidden', '.nd_modal', function () {
|
||||||
$('#nd_devdel-log').val('');
|
$('#nd_devdel-log').val('');
|
||||||
|
|||||||
Reference in New Issue
Block a user