i came up with the following solution by editing the jquery-mobile-source (hopefully this will be fixed in the new release!):
add the lines below to the close method inside
- $.widget( "mobile.dialog",
widget. right before:
- $.mobile.changePage( dst, { direction: "back", changeHash: false, fromHashChange: true } );
add those lines:
- if( dst.indexOf('#') !== -1 ){
- dst = dst.split('#');
- dst = dst[0];
- }
In case you want to add your custom dialog transition effect as well:
replace the line
- $.mobile.changePage( dst, { direction: "back", changeHash: false, fromHashChange: true } );
with
- $.mobile.changePage( dst, { transition: $.mobile.defaultDialogTransition, direction: "back", changeHash: false, fromHashChange: true } );
hope this helps and i am looking forward to seeing this bug fixed in the new version of jqm!