* Fix bug that would cause modal dialogs to not show up (modal dialogs aren't draggables)
* Fix issue that broke portal poslinks on mobile
This commit is contained in:
parent
553ecdc61e
commit
99bbcbcb30
@ -203,13 +203,13 @@ window.dialog = function(options) {
|
||||
dialog.data('focusCallback', options.focusCallback);
|
||||
dialog.data('blurCallback', options.blurCallback);
|
||||
|
||||
// ui-modal includes overrides for modal dialogs
|
||||
if (options.modal) {
|
||||
// ui-modal includes overrides for modal dialogs
|
||||
dialog.parent().addClass('ui-modal');
|
||||
}
|
||||
|
||||
} else {
|
||||
// Enable snapping
|
||||
dialog.dialog().parents('.ui-dialog').draggable('option', 'snap', true);
|
||||
}
|
||||
|
||||
// Run it
|
||||
dialog.dialog('open');
|
||||
|
@ -159,7 +159,7 @@ window.showPortalPosLinks = function(lat, lng, name) {
|
||||
encoded_name = encodeURIComponent(' (' + name + ')');
|
||||
}
|
||||
if (typeof android !== 'undefined' && android && android.intentPosLink) {
|
||||
android.intentPosLink(lat, lng, portal_name);
|
||||
android.intentPosLink(lat, lng, encoded_name);
|
||||
} else {
|
||||
var qrcode = '<div id="qrcode"></div>';
|
||||
var script = '<script>$(\'#qrcode\').qrcode({text:\'GEO:'+lat+','+lng+'\'});</script>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user