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
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-08-30 15:01:18 +0300
committerGitHub <noreply@github.com>2016-08-30 15:01:18 +0300
commit96dcfa53615633561df9349de610826d894ae5e0 (patch)
treec27b193de04268c034756763739e4709d5f71fd0
parent8d7b9fea6fcb8893512c891c165bd5a1ca419191 (diff)
parent72eb145be292c9e11d8796cb9e40e2ddc4be7192 (diff)
Merge pull request #9 from nextcloud/backport-7-json-files-9v9.0.58RC1v9.0.58v9.0.57RC1v9.0.57v9.0.56RC1v9.0.56v9.0.55v9.0.54RC1v9.0.54stable9
Open JSON files with the text editor
-rw-r--r--js/editor.js21
1 files changed, 11 insertions, 10 deletions
diff --git a/js/editor.js b/js/editor.js
index 61a7c8a..47260fc 100644
--- a/js/editor.js
+++ b/js/editor.js
@@ -243,16 +243,17 @@ var Files_Texteditor = {
* Registers the file actions
*/
registerFileActions: function() {
- var mimes = Array(
- 'text',
- 'application/xml',
- 'application/x-empty',
- 'application/x-php',
- 'application/javascript',
- 'application/x-pearl',
- 'application/x-text',
- 'application/yaml'
- );
+ var mimes = [
+ 'text',
+ 'application/javascript',
+ 'application/json',
+ 'application/xml',
+ 'application/x-empty',
+ 'application/x-php',
+ 'application/x-pearl',
+ 'application/x-text',
+ 'application/yaml'
+ ];
_self = this;