iitcm: use share interface on draw tools copy
This commit is contained in:
@ -290,12 +290,16 @@ window.plugin.drawTools.optAlert = function(message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.plugin.drawTools.optCopy = function() {
|
window.plugin.drawTools.optCopy = function() {
|
||||||
dialog({
|
if (typeof android !== 'undefined' && android && android.shareString) {
|
||||||
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>',
|
android.shareString(localStorage['plugin-draw-tools-layer']);
|
||||||
width: 600,
|
} else {
|
||||||
dialogClass: 'ui-dialog-drawtoolsSet-copy',
|
dialog({
|
||||||
title: 'Draw Tools Export'
|
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,
|
||||||
|
dialogClass: 'ui-dialog-drawtoolsSet-copy',
|
||||||
|
title: 'Draw Tools Export'
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
window.plugin.drawTools.optPaste = function() {
|
window.plugin.drawTools.optPaste = function() {
|
||||||
|
Reference in New Issue
Block a user