Index: trunk/extensions/SemanticForms/skins/SF_popupform.css |
— | — | @@ -20,7 +20,6 @@ |
21 | 21 | height: 100%; |
22 | 22 | width: 100%; |
23 | 23 | background: black; |
24 | | - z-index: 4; |
25 | 24 | |
26 | 25 | } |
27 | 26 | |
— | — | @@ -30,7 +29,6 @@ |
31 | 30 | top: 50%; |
32 | 31 | width: 0; |
33 | 32 | height: 0; |
34 | | - z-index: 6; |
35 | 33 | } |
36 | 34 | |
37 | 35 | div.popupform-container { |
— | — | @@ -59,7 +57,6 @@ |
60 | 58 | position: fixed; |
61 | 59 | left: 50%; |
62 | 60 | top: 50%; |
63 | | - z-index: 5; |
64 | 61 | } |
65 | 62 | |
66 | 63 | div.popupform-loadingbg { |
Index: trunk/extensions/SemanticForms/libs/SF_popupform.js |
— | — | @@ -135,6 +135,14 @@ |
136 | 136 | |
137 | 137 | brokenBrowser= jQuery.browser.msie ||brokenChrome; |
138 | 138 | |
| 139 | + var maxZIndex = 0; |
| 140 | + |
| 141 | + jQuery("*").each(function() { |
| 142 | + var curr = parseInt( jQuery( this ).css( "z-index" ) ); |
| 143 | + maxZIndex = curr > maxZIndex ? curr : maxZIndex; |
| 144 | + }); |
| 145 | + |
| 146 | + |
139 | 147 | wrapper = jQuery( "<div class='popupform-wrapper' >" ); |
140 | 148 | background = jQuery( "<div class='popupform-background' >" ); |
141 | 149 | |
— | — | @@ -168,6 +176,7 @@ |
169 | 177 | .append(container); |
170 | 178 | |
171 | 179 | wrapper |
| 180 | + .css( "z-index", maxZIndex + 1 ) |
172 | 181 | .append( background ) |
173 | 182 | .append( waitIndicatorWrapper ) |
174 | 183 | .append( anchor ) |