Merge branch 'intents' of git://github.com/fkloft/ingress-intel-total-conversion into fkloft-intents
Conflicts: mobile/res/values/strings.xml
This commit is contained in:
@ -176,7 +176,7 @@ window.showPortalPosLinks = function(lat, lng, name) {
|
||||
}
|
||||
|
||||
if (typeof android !== 'undefined' && android && android.intentPosLink) {
|
||||
android.intentPosLink(lat, lng, encoded_name);
|
||||
android.intentPosLink(lat, lng, map.getZoom(), name, true);
|
||||
} else {
|
||||
var qrcode = '<div id="qrcode"></div>';
|
||||
var script = '<script>$(\'#qrcode\').qrcode({text:\'GEO:'+lat+','+lng+'\'});</script>';
|
||||
@ -200,6 +200,15 @@ window.androidCopy = function(text) {
|
||||
return false;
|
||||
}
|
||||
|
||||
window.androidPermalink = function() {
|
||||
if(typeof android === 'undefined' || !android || !android.copy)
|
||||
return true; // i.e. execute other actions
|
||||
|
||||
var center = map.getCenter();
|
||||
android.intentPosLink(center.lat, center.lng, map.getZoom(), "Intel Map", false);
|
||||
return false;
|
||||
}
|
||||
|
||||
window.reportPortalIssue = function(info) {
|
||||
var t = 'Redirecting you to a Google Help Page.\n\nThe text box contains all necessary information. Press CTRL+C to copy it.';
|
||||
var d = window.portals[window.selectedPortal].options.details;
|
||||
|
Reference in New Issue
Block a user