Merge branch 'master' of github.com:mozilla/FlightDeck

This commit is contained in:
Piotr Zalewa 2011-09-23 16:05:27 +01:00
Родитель 0f778081c3 78a5b0c5d4
Коммит 4788d03588
2 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -590,6 +590,7 @@ var Attachment = new Class({
delete packAttachments[oldUID]; delete packAttachments[oldUID];
this.setOptions(options); this.setOptions(options);
this.options.path = options.filename + '.' + options.type;
packAttachments[options.uid] = this; packAttachments[options.uid] = this;
var editorUID = this.getEditorID(); var editorUID = this.getEditorID();
@ -1071,7 +1072,7 @@ Package.Edit = new Class({
filename = filename.getFileName(); filename = filename.getFileName();
} }
var attachmentEl = fd.sidebar.getBranchFromFile(newName, 'data'); var attachmentEl = fd.sidebar.getBranchFromPath(newName, 'data');
var spinnerEl = attachmentEl || $(fd.sidebar.trees.data); var spinnerEl = attachmentEl || $(fd.sidebar.trees.data);
new Request.JSON({ new Request.JSON({

Просмотреть файл

@ -229,7 +229,6 @@ var Sidebar = new Class({
options.nodrag = true; options.nodrag = true;
} }
var element = tree.addPath(file, options); var element = tree.addPath(file, options);
tree.collapse.prepare(); tree.collapse.prepare();
@ -271,8 +270,6 @@ var Sidebar = new Class({
}, },
removeFile: function(file, prefix) { removeFile: function(file, prefix) {
$log('sidebar destroy')
if (file instanceof File) { if (file instanceof File) {
file.destroy(); file.destroy();
return; return;
@ -418,7 +415,6 @@ var Sidebar = new Class({
} else if (fileType == Module) { } else if (fileType == Module) {
fd.getItem().removeModules(file); fd.getItem().removeModules(file);
} else if (fileType == Attachment) { } else if (fileType == Attachment) {
$log('removing folder')
fd.getItem().removeAttachments(file); fd.getItem().removeAttachments(file);
} }