From bb5c6ea6f6a7b5c9761de8f17b25321a7a14960c Mon Sep 17 00:00:00 2001 From: Philipp Schaefer Date: Wed, 29 Jan 2014 09:53:19 +0100 Subject: [PATCH] removed bookmarks share button on iitcm * call share interface from copy option * a copy button and a share button are redundant since you can copy2clipboard from share interface too * this way we stay consistent with the new draw tools options --- plugins/bookmarks-by-zaso.user.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/plugins/bookmarks-by-zaso.user.js b/plugins/bookmarks-by-zaso.user.js index 4a9191b1..e15075f9 100644 --- a/plugins/bookmarks-by-zaso.user.js +++ b/plugins/bookmarks-by-zaso.user.js @@ -535,7 +535,7 @@ window.plugin.bookmarks.optCopy = function() { if(typeof android !== 'undefined' && android && android.intentPosLink) { - return androidCopy(localStorage[window.plugin.bookmarks.KEY_STORAGE]); + return android.shareString(localStorage[window.plugin.bookmarks.KEY_STORAGE]); } else { dialog({ html: '

Select all and press CTRL+C to copy it.

', @@ -569,14 +569,6 @@ } } - window.plugin.bookmarks.optShare = function() { - if(window.plugin.bookmarks.isAndroid() && android.shareString) { - android.shareString(localStorage[window.plugin.bookmarks.KEY_STORAGE]); - } else { - window.plugin.bookmarks.optAlert('Only IITC mobile. '); - } - } - window.plugin.bookmarks.optBox = function(command) { if(!window.plugin.bookmarks.isAndroid()) { switch(command) { @@ -922,7 +914,6 @@ +'Copy/Export Bookmarks' +'Paste/Import Bookmarks' +'Reset Bookmarks' - +'Share all Bookmarks (IITCm)' +'Save box position (No IITCm)' +'Reset box position (No IITCm)' +'';