diff options
-rw-r--r-- | apps/files/js/fileactions.js | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 283118cd327..67fdf9620c6 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -710,29 +710,31 @@ } }); - this.registerAction({ - name: 'EditLocally', - displayName: function(context) { - var locked = context.$file.data('locked'); - if (!locked) { - return t('files', 'Edit locally'); - } - }, - mime: 'all', - order: -23, - icon: function(filename, context) { - var locked = context.$file.data('locked'); - if (!locked) { - return OC.imagePath('files', 'computer.svg') - } - }, - permissions: OC.PERMISSION_UPDATE, - actionHandler: function (filename, context) { - var dir = context.dir || context.fileList.getCurrentDirectory(); - var path = dir === '/' ? dir + filename : dir + '/' + filename; - context.fileList.openLocalClient(path); - }, - }); + if (!/Android|iPhone|iPad|iPod/i.test(navigator.userAgent)) { + this.registerAction({ + name: 'EditLocally', + displayName: function(context) { + var locked = context.$file.data('locked'); + if (!locked) { + return t('files', 'Edit locally'); + } + }, + mime: 'all', + order: -23, + icon: function(filename, context) { + var locked = context.$file.data('locked'); + if (!locked) { + return OC.imagePath('files', 'computer.svg') + } + }, + permissions: OC.PERMISSION_UPDATE, + actionHandler: function (filename, context) { + var dir = context.dir || context.fileList.getCurrentDirectory(); + var path = dir === '/' ? dir + filename : dir + '/' + filename; + context.fileList.openLocalClient(path); + }, + }); + } this.registerAction({ name: 'Open', |