From 4fefbac1fa93fc3c03b823133f3548026643c766 Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 14 Aug 2015 22:40:01 +0400 Subject: [PATCH 1/3] allow setting default syntax for the project --- package.json | 2 +- plugins/c9.ide.ace/ace.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 835e54be..135f486f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "c9", "description": "New Cloud9 Client", - "version": "3.0.1", + "version": "3.0.2357", "author": "Ajax.org B.V. ", "private": true, "main": "bin/c9", diff --git a/plugins/c9.ide.ace/ace.js b/plugins/c9.ide.ace/ace.js index 60e50541..c6d5e129 100644 --- a/plugins/c9.ide.ace/ace.js +++ b/plugins/c9.ide.ace/ace.js @@ -1375,7 +1375,7 @@ define(function(require, exports, module) { } function getMode(syntax) { - syntax = (syntax || "text").toLowerCase(); + syntax = (syntax || settings.get("project/ace/@defaultSyntax") || "text").toLowerCase(); if (syntax.indexOf("/") == -1) syntax = "ace/mode/" + syntax; From 7f11cd064e7bd0f42dff6764a0e3bde6b377063c Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 14 Aug 2015 22:43:51 +0400 Subject: [PATCH 2/3] fix html escaping in favorites --- plugins/c9.ide.tree/favorites.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/c9.ide.tree/favorites.js b/plugins/c9.ide.tree/favorites.js index bd430aec..71a47501 100644 --- a/plugins/c9.ide.tree/favorites.js +++ b/plugins/c9.ide.tree/favorites.js @@ -22,6 +22,8 @@ define(function(require, exports, module) { var basename = require("path").basename; var dirname = require("path").dirname; + var escapeHTML = require("ace/lib/lang").escapeHTML; + /***** Initialization *****/ @@ -650,9 +652,9 @@ define(function(require, exports, module) { model.getCaptionHTML = function(node) { if (node.isFavorite) { var path = node.labelPath || node.path; - return basename(path) + return escapeHTML(basename(path)) + " - " - + dirname(path) + ""; + + escapeHTML(dirname(path)) + ""; } else return getCaptionHTML.call(model, node); From 40f9bf3332169291009c36e4ffc2f26f89360440 Mon Sep 17 00:00:00 2001 From: nightwing Date: Fri, 14 Aug 2015 23:34:19 +0400 Subject: [PATCH 3/3] fix panel contextmenu --- plugins/c9.ide.panels/area.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/c9.ide.panels/area.js b/plugins/c9.ide.panels/area.js index 7b11cca2..3c6d6686 100644 --- a/plugins/c9.ide.panels/area.js +++ b/plugins/c9.ide.panels/area.js @@ -44,7 +44,7 @@ define(function(require, module, exports) { column.setWidth(CURWIDTH); column.setAttribute("class", where); - column.oncontextmenu = function(e) { + bar.oncontextmenu = function(e) { var menu = menus.get("Window").menu; menu.display(e.x, e.y); menu.childNodes.forEach(function(x) {