Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ajaxorg/cloud9
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedeboer committed Oct 1, 2010
2 parents 7000d8d + b4d7b36 commit d203f69
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
11 changes: 6 additions & 5 deletions client/ext/editors/editors.js
Expand Up @@ -192,7 +192,7 @@ return ext.register("ext/editors/editors", {
editorPage = tabEditors.getPage(editor.path);

//Create Fake Page
var model, fake = tabEditors.add(filename, filepath, editor.path, null, function(page){
var model, fake = tabEditors.add("{[@name] + ([@changed] == 1 ? '*' : '')}", filepath, editor.path, null, function(page){
page.contentType = contentType;
page.$at = new apf.actiontracker();
model = page.$model = new apf.model();
Expand All @@ -203,9 +203,7 @@ return ext.register("ext/editors/editors", {
var val = (this.undolength ? 1 : undefined);
if (fake.changed != val) {
fake.changed = val;
var filename = apf.getFilename(model.data.getAttribute("path"));
fake.setAttribute("caption", filename + (val ? "*" : ""));
model.setQueryValue("@name", filename + (val ? "*" : ""));
model.setQueryValue("@changed", (val ? "1" : "0"));
}
});

Expand Down Expand Up @@ -356,7 +354,10 @@ return ext.register("ext/editors/editors", {
var file = pages[i].$model.data;
if (file.getAttribute("debug"))
continue;
pNode.appendChild(apf.xmldb.cleanNode(file.cloneNode(false)));

var copy = apf.xmldb.cleanNode(file.cloneNode(false));
copy.removeAttribute("changed");
pNode.appendChild(copy);
}
}

Expand Down
4 changes: 2 additions & 2 deletions client/ext/filesystem/filesystem.js
Expand Up @@ -97,7 +97,7 @@ return ext.register("ext/filesystem/filesystem", {
page = tabEditors.getPage(extra.originalArgs[1]);
apf.xmldb.setAttribute(node, "path", base + extra.originalArgs[0]);
if (page) {
page.setAttribute("caption", node.getAttribute("name"));
//page.setAttribute("caption", node.getAttribute("name"));
page.setAttribute("id", base + extra.originalArgs[0]);
}
},
Expand All @@ -108,7 +108,7 @@ return ext.register("ext/filesystem/filesystem", {
var node = trFiles.xmlRoot.selectSingleNode("//folder[@path='" + extra.originalArgs[1] + "']"),
page = tabEditors.getPage(extra.originalArgs[0]);
if (page) {
page.setAttribute("caption", node.getAttribute("name"));
//page.setAttribute("caption", node.getAttribute("name"));
page.setAttribute("id", extra.originalArgs[1]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion client/ext/tree/tree.xml
Expand Up @@ -31,7 +31,7 @@
contextmenu="mnuCtxTree" multiselect="true" reselectable="true">
<a:each match="[project|file|folder]" sort="[@name]" sort-method="filesort">
<a:insert match="[folder]" get="{location.host and davProject.readdir([@path])}" />
<a:caption match="[@name]" />
<a:caption match="[@name]" value="{[.] + ([../@changed] == 1 ? '*' : '')}" />
<a:icon match="[folder|project]" value="folder.png" />
<a:icon match="[file]" value="{getIcon(%[.])}" />
<a:expanded match="[project]" />
Expand Down
2 changes: 1 addition & 1 deletion client/index.html
Expand Up @@ -27,7 +27,7 @@

var HOST = "http://dev1.ajax.org";
var TESTING = false; //Load data from test models
var VERSION = FILES; //Change the version you want to use here
var VERSION = RELEASE; //Change the version you want to use here

var apfLoc = VERSION == FILES
? "common/apf/apf.js"
Expand Down
2 changes: 1 addition & 1 deletion common/ace
Submodule ace updated from dcd5d6 to 2f80f6

0 comments on commit d203f69

Please sign in to comment.