initiate copy on android instead of following links

This commit is contained in:
Stefan Breunig
2013-03-12 00:30:27 +01:00
parent 8f76951ca3
commit bc63c47d47
3 changed files with 10 additions and 2 deletions

View File

@ -118,6 +118,14 @@ window.showPortalPosLinks = function(lat, lng) {
}
}
window.androidCopy = function(text) {
if(typeof android === 'undefined' || !android || !android.copy)
return true; // i.e. execute other actions
else
android.copy(text);
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;