Initialising a button on the page_container gives rubbish markup.
The markup below throws a div around the Yes button & give a terrible ui (shown at the bottom) when the button is initialised using:
- var w = $("#confirmDeleteAccountDialog .deleteConfirmationButton");
- if (w.data("mobileButton") === undefined) {
- w.button();
- }
- w.button("enable");
How do I go about NOT having the div around the anchor created? (Line 21)
I've omitted all the script stuff.
Thanks for looking, N
- <html>
- <head></head>
- <body>
- <!-- Mobile page -->
- <div id="crmMyAccountsDetailPage" data-role="page" class="type-interior" style="background: #E5E5E5">
- <!-- Page container -->
- <div id="page_container" style="display: inline">
- <!-- Header -->
- <div id="accountsMainHeader"> </div>
- <!-- End of header -->
- <div data-role="content" class="ui-content" role="main">
- <div id="confirmDeleteAccountDialog" data-role="popup" data-theme="a" data-corners="true">
- <form>
- <div data-role="header" data-theme="d">
- <h1>Are you sure?</h1>
- </div>
- <div data-role="main" style="padding: 4px;">
- <p id="deleteEntityDescription"> </p>
- <hr style="margin: inherit -4px;" />
- <div style="float: right;">
- <div class="ui-btn ui-input-btn ui-btn-a ui-corner-all ui-shadow ui-btn-inline"><a class="deleteConfirmationButton ui-link ui-btn ui-btn-a ui-btn-inline ui-shadow ui-corner-all" data-role="button" data-inline="true" data-theme="a" href="#" role="button">Yes</a></div>
- </div>
- <div style="clear: both;"></div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>