iitcm: use share interface on draw tools copy
This commit is contained in:
@ -290,6 +290,9 @@ window.plugin.drawTools.optAlert = function(message) {
|
||||
}
|
||||
|
||||
window.plugin.drawTools.optCopy = function() {
|
||||
if (typeof android !== 'undefined' && android && android.shareString) {
|
||||
android.shareString(localStorage['plugin-draw-tools-layer']);
|
||||
} else {
|
||||
dialog({
|
||||
html: '<p><a onclick="$(\'.ui-dialog-drawtoolsSet-copy textarea\').select();">Select all</a> and press CTRL+C to copy it.</p><textarea readonly onclick="$(\'.ui-dialog-drawtoolsSet-copy textarea\').select();">'+localStorage['plugin-draw-tools-layer']+'</textarea>',
|
||||
width: 600,
|
||||
@ -297,6 +300,7 @@ window.plugin.drawTools.optCopy = function() {
|
||||
title: 'Draw Tools Export'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
window.plugin.drawTools.optPaste = function() {
|
||||
var promptAction = prompt('Press CTRL+V to paste it.', '');
|
||||
|
Reference in New Issue
Block a user