Popup not styled
Popup not styled
Hello,
I've a problem when I click on my button for opening the popup dialog. Actually, the popup doesn't accept data-theme="a", data-theme="b", data-theme="c",...I'm obliged to use css style with "background-color:#4b88b6;" and also, the button 'OK' is not styled with JQuery mobile.
Do you have a solution ?
Thank you
- <script>
- $(document).on('pageinit', function (event) {
- $("#connectionFacebookBtn").on("click", function (event) {
- $("#dialog1").popup();
- $("#dialog1").popup('open');
- $('#validateBtn').button('refresh');
- }
- <script>
- <body>
- <div data-role="page">
- <div data-role="ui-content">
- </div>
- <div data-role="popup" data-theme="d" id="dialog1">
- <div data-role="header" style="background-color:#4b88b6;" class="ui-corner-top" data-add-back-btn="false">
- <h1 style="padding-left:0%;">Erreur d'authentification</h1>
- </div>
- <div data-role="content" data-theme="d" class="ui-corner-bottom ui-content">
- <h3>@ViewBag.error1</h3>
- <h3>@ViewBag.error2</h3>
-
- <a id="validateBtn" href="#" data-role="button" data-inline="true" data-theme="b">OK</a>
-
- </div>
- </div>
- </body>