Skip to content

Commit 61f1737

Browse files
committed
* fix errors in tabs behavior
* apf_release
1 parent f2bb597 commit 61f1737

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

client/ext/filesystem/filesystem.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ module.exports = ext.register("ext/filesystem/filesystem", {
217217

218218
for (var i = 0; i < length; ++i) {
219219
var childNode = childNodes[i];
220+
if(!childNode)
221+
continue;
222+
220223
// The 'name' variable is redeclared here for some fucked up reason.
221224
// The problem is that we are reusing that variable below. If the author
222225
// of this would be so kind to fix this code as soon as he sees this

client/ext/newresource/newresource.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,13 @@ module.exports = ext.register("ext/newresource/newresource", {
7373

7474

7575
var path = "/workspace/", sel = trFiles.selected;
76-
if (sel)
77-
path = sel.getAttribute("path").replace(/\/[^\/]*$/, "/");
78-
76+
if (sel) {
77+
path = sel.getAttribute("path");
78+
if(trFiles.selected.getAttribute("type") == "file")
79+
path = path.replace(/\/[^\/]*$/, "/");
80+
else
81+
path = path + "/";
82+
}
7983
var name = "Untitled", count = 1;
8084
while(tabEditors.getPage(path + name + count + type)) {
8185
count++;

client/ext/save/save.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
id = "txtSaveAs"
7474
flex = "7"
7575
focusselect = "true"
76-
onkeydown = "if (event.keyCode == 13) require('ext/save/save').choosePath(this.getValue())" />
76+
onkeydown = "if (event.keyCode == 13) require('ext/save/save').choosePath(lblPath.getProperty('caption') + this.getValue())" />
7777
</a:hbox>
7878
<a:label id="lblPath" class="lbl_filepath" />
7979

client/js/apf_release.js

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)