I'm trying to display a pop up dialog (using a hidden block) inside the overlay when editing a node.
When i click to edit a node, the overlay appears with all the custom fields of a given content type as usual. It is clean and white and everything in the background is darkened out.
So now i have logic in place (using jQUery) that's supposed to change my div's display to 'show' on keyup for a specific field on top of the overlay edit node.
I've tried adding a z-index of over 1000 and still nothing. The drupal overlay is using a z-index of 501 but my custom div still wont display on top of/over it.
This is my CSS for the hidden block:
#block-block-block-26 {
z-index: 2000 !important;
position: fixed;
display: none;
text-align: center;
border: 1px solid #333;
width: 200px;
height: 80px;
border-radius: 5px;
padding: 10px;
}
This is my function inside jQuery:
$('#edit-field-pi-estimated-ini-capital-und-0-value').keyup(function() {
var txtVal = this.value;
if(txtVal == 0 && txtVal != '') {
$('#block-block-block-26').show();
return false;
}
});
any idea how to make my div appear over the overlay?
Thanks