diff options
author | mikeazo <undefinedspace@gmail.com> | 2014-03-17 21:42:57 +0400 |
---|---|---|
committer | mikeazo <undefinedspace@gmail.com> | 2014-03-17 21:42:57 +0400 |
commit | 73aa27fd37346326262d604ecd3e3a33a247833d (patch) | |
tree | 8c4b2ca167d25341739cd0ec4f28e1341654ea6c /js | |
parent | d1fa261361b8b3b249c4d2b84cca1800b57b5f3f (diff) |
Update editor.js
Updated to open the application/x-tex mime type.
Diffstat (limited to 'js')
-rw-r--r-- | js/editor.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/editor.js b/js/editor.js index 7694d02..cf5534c 100644 --- a/js/editor.js +++ b/js/editor.js @@ -363,6 +363,10 @@ $(document).ready(function () { showFileEditor($('#dir').val(), filename); }); FileActions.setDefault('application/x-pearl', 'Edit'); + FileActions.register('application/x-tex', 'Edit', OC.PERMISSION_READ, '', function (filename) { + showFileEditor($('#dir').val(), filename); + }); + FileActions.setDefault('application/x-tex', 'Edit'); } |