Skip to content

Commit 82e6fe7

Browse files
committed
Eliminates need for an IE6/7-specific workaround class, as well as additional scripting.
1 parent 7376b45 commit 82e6fe7

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

css/structure/jquery.mobile.popup.css

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
.ui-popup-screen {
2+
background-image: url(data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==); /* Necessary to set some form of background to ensure element is clickable in IE6/7. While legacy IE won’t understand the data-URI’d image, it ensures no additional requests occur in all other browsers with little overhead. */
23
top: 0px;
34
left: 0px;
45
right: 0px;
56
bottom: 1px;
67
position: absolute;
7-
filter: Alpha(Opacity=50);
8+
filter: Alpha(Opacity=0);
89
opacity: 0;
910
z-index: 1099;
1011
}
1112

12-
.ui-popup-screen-background-hack {
13-
background-color: black;
14-
filter: Alpha(Opacity=0);
15-
}
16-
1713
@-webkit-keyframes popup-fadein {
1814
from { opacity: 0; }
1915
to { opacity: 0.5; }
@@ -36,12 +32,14 @@
3632

3733
.ui-popup-screen.fade.in {
3834
opacity: 0.5;
35+
filter: Alpha(Opacity=50);
3936
-webkit-animation-name: popup-fadein;
4037
-moz-animation-name: popup-fadein;
4138
}
4239

4340
.ui-popup-screen.fade.out {
4441
opacity: 0;
42+
filter: Alpha(Opacity=0);
4543
-webkit-animation-name: popup-fadeout;
4644
-moz-animation-name: popup-fadeout;
4745
}

js/widgets/popup.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -222,15 +222,6 @@ define( [ "jquery",
222222
_setOverlayTheme: function( value ) {
223223
this._applyTheme( this._ui.screen, value, "overlay" );
224224

225-
if ( $.mobile.browser.ie ) {
226-
this._ui.screen.toggleClass(
227-
"ui-popup-screen-background-hack",
228-
( this._ui.screen.css( "background-color" ) === "transparent" &&
229-
this._ui.screen.css( "background-image" ) === "none" &&
230-
( this._ui.screen.css( "background" ) === undefined ||
231-
this._ui.screen.css( "background" ) === "" ) ) );
232-
}
233-
234225
if ( this._isOpen ) {
235226
this._ui.screen.addClass( "in" );
236227
}

0 commit comments

Comments
 (0)