[missions] fix desktop version
This commit is contained in:
parent
439fcae210
commit
522eb8d38c
@ -171,7 +171,8 @@ window.plugin.missions = {
|
|||||||
tabs.tabs('refresh');
|
tabs.tabs('refresh');
|
||||||
tabs.find('.ui-tabs-nav').sortable('refresh');
|
tabs.find('.ui-tabs-nav').sortable('refresh');
|
||||||
tabs.tabs('option','active', -1);
|
tabs.tabs('option','active', -1);
|
||||||
show('plugin-missions');
|
if(window.isSmartphone())
|
||||||
|
show('plugin-missions');
|
||||||
} else {
|
} else {
|
||||||
dialog({
|
dialog({
|
||||||
id: 'plugin-mission-details-' + id,
|
id: 'plugin-mission-details-' + id,
|
||||||
@ -502,13 +503,15 @@ window.plugin.missions = {
|
|||||||
|
|
||||||
title.href = perma;
|
title.href = perma;
|
||||||
title.addEventListener('click', function(ev) {
|
title.addEventListener('click', function(ev) {
|
||||||
show('map');
|
if(window.isSmartphone())
|
||||||
|
show('map');
|
||||||
selectPortalByLatLng(lat, lng);
|
selectPortalByLatLng(lat, lng);
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
return false;
|
return false;
|
||||||
}, false);
|
}, false);
|
||||||
title.addEventListener('dblclick', function(ev) {
|
title.addEventListener('dblclick', function(ev) {
|
||||||
show('map');
|
if(window.isSmartphone())
|
||||||
|
show('map');
|
||||||
zoomToAndShowPortal(waypoint.portal.guid, [lat, lng]);
|
zoomToAndShowPortal(waypoint.portal.guid, [lat, lng]);
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user