Odd popup close behaviour.
So immediately on my startpage i fire off a popup like this:
- $( '#startpage' ).live( 'pageshow',function()
- {
- $("#mypopup").popup("open");
- });
Looks nice overlaying the startpage. But when i close it, it doesn´t go back to the page it is overlaying. It goes back one more page exiting my web root. Why is this happening? I´m using the following html code:
- <body>
- <div data-role="page" id="startpage">
- <div data-role="popup" id="mypopup" data-theme="b" data-overlay-theme="a" data-shadow="false" style="min-width:230px;">
- <a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-left">Close</a>
- </div>
- ...