[Pkg-owncloud-commits] [owncloud] 71/75: update file extensions in editor

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:08:45 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v3.0.1
in repository owncloud.

commit 86f2f841bff348a6676afccb27a9010be5c8b554
Author: Tom Needham <needham.thomas at gmail.com>
Date:   Sat Mar 10 14:00:57 2012 +0000

    update file extensions in editor
---
 apps/files_texteditor/js/editor.js |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js
index d4852d4..0856b60 100644
--- a/apps/files_texteditor/js/editor.js
+++ b/apps/files_texteditor/js/editor.js
@@ -11,7 +11,7 @@ function getFileExtension(file){
 function setSyntaxMode(ext){
 	// Loads the syntax mode files and tells the editor
 	var filetype = new Array();
-	// Todo finish these
+	// add file extensions like this: filetype["extension"] = "filetype":
     filetype["h"] = "c_cpp";
     filetype["c"] = "c_cpp";
     filetype["clj"] = "clojure";
@@ -27,8 +27,14 @@ function setSyntaxMode(ext){
 	filetype["js"] = "javascript";
     filetype["json"] = "json";
    	filetype["latex"] = "latex";
+	filetype["ly"] = "latex";
+	filetype["ily"] = "latex";
     filetype["lua"] = "lua";
-    filetype["markdown"] = "markdown"; // also: .md .markdown .mdown .mdwn
+    filetype["markdown"] = "markdown";
+    filetype["md"] = "markdown";
+    filetype["mdown"] = "markdown";
+    filetype["mdwn"] = "markdown";
+	filetype["mkd"] = "markdown";
     filetype["ml"] = "ocaml";
     filetype["mli"] = "ocaml";
 	filetype["pl"] = "perl";
@@ -142,7 +148,7 @@ function doFileSave(){
 		// Show saving spinner
 		$("#editor_save").die('click',doFileSave);
 		$('#save_result').remove();
-		$('#editor_save').text(t('files_texteditor','Saving...'));//after('<img id="saving_icon" src="'+OC.filePath('core','img','loading.gif')+'"></img>');
+		$('#editor_save').text(t('files_texteditor','Saving...'));
 		// Get the data
 		var filecontents = window.aceEditor.getSession().getValue();
 		// Send the data

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list