Skip to content

Instantly share code, notes, and snippets.

@WolfyUK
Forked from tqc/jqmdialogfix.css
Last active December 20, 2015 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WolfyUK/6154328 to your computer and use it in GitHub Desktop.
Save WolfyUK/6154328 to your computer and use it in GitHub Desktop.
.ui-dialog-background {
opacity: 0.5;
display: block !important;
}
.ui-dialog-background.pop.in {
opacity: 1;
}
.ui-dialog {
min-height: 100% !important;
background: transparent !important;
}
$(function() {
$(document).on("pageinit", function (e) {
$(document).on('pagebeforeshow', '[data-role="dialog"]', function (e, ui) {
if (ui.prevPage.data('role') != 'dialog') {
ui.prevPage.addClass("ui-dialog-background");
}
});
$(document).on('pagehide', '[data-role="dialog"]', function (e, ui) {
if (ui.nextPage.data('role') != 'dialog') {
$(".ui-dialog-background ").removeClass("ui-dialog-background");
}
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment