Popup not appearing the 2nd time (1.2 beta)
Hi,
I have a problem with the popup in version 1.2.0 beta:
The popup itself is inside my index.html:
- ....
- <div data-role="page" id="landing">
- <div id="popupBasic" class="ui-content" ><a href="#" style="float:right;" onclick="$('#popupBasic').popup('close');">close</a><div id="popupText"></div></div>
- ...
- </div>
I have different pages which are loaded afterwards and some of them have links which should open the popup:
- $(".popupOpener").attr("data-position-to","window").attr("data-rel","popup");
- $(".popupOpener").attr("href","#popupBasic");
- $(".popupOpener").click(function(e){
- $("#popupBasic #popupText").html('test');
- $("#popupBasic").popup('open');
- });
First click is fine. Popup opens and can be closed.
There is an error when I open the popup:
And when I close the popup:
Afterwards I can't open it again!
Any hints?