Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-12 17:17:18 +0300
committerJan-Christoph Borchardt <hey@jancborchardt.net>2015-10-12 23:43:59 +0300
commit4a2fb29da71c34b027d0ef20cfe33d7553ebe3fc (patch)
treeae7da30f081d69a20fe881e83eba63b3470b2419 /js
parentaa7aaaa8ad72d17d78c0f816cd3f44c89977ffeb (diff)
Adding icon to edit action in action menu
Diffstat (limited to 'js')
-rw-r--r--js/editor.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/js/editor.js b/js/editor.js
index d41ccc8..7d4baef 100644
--- a/js/editor.js
+++ b/js/editor.js
@@ -242,7 +242,10 @@ var Files_Texteditor = {
name: 'Edit',
mime: value,
actionHandler: _.bind(_self._onEditorTrigger, _self),
- permissions: OC.PERMISSION_READ
+ permissions: OC.PERMISSION_READ,
+ icon: function () {
+ return OC.imagePath('core', 'actions/edit');
+ }
});
OCA.Files.fileActions.setDefault(value, 'Edit');
});
@@ -541,7 +544,7 @@ var Files_Texteditor = {
this.saveTimer = setTimeout(OCA.Files_Texteditor._onSaveTrigger, 3000);
}
-}
+};
OCA.Files_Texteditor = Files_Texteditor;