jtsage/jquery-mobile-simpledialog

Apple app mode close button firing reload

PlippiePlop opened this issue · 1 comments

When in in apple mobile app mode (putting icon on desk from browser and launch from there)

The close button fires a reload of the page after removing the popup. I tried to prevent this in the callbackClose function() along other things but it still fires off a page reload/refresh.

a href="#" rel="close" data-inline="true" id="closebutton">Cancel /a

It works only if I control the #closebutton outside of the simpledialog2 function call :

$("#closebutton").on("vclick",function(){
e.preventDefault();
$(".ui-simpledialog-container, .ui-simpledialog-screen").remove()
return true;
;}

It's a memory stack size issue (I think) - basically, the page is bigger than IOS will keep in memory - I'll look for a fix, but I don't know of one. (This is actually the #1 reason I hate the dialog mode)