зеркало из https://github.com/mozilla/FlightDeck.git
Merge branch 'master' of github.com:mozilla/FlightDeck
This commit is contained in:
Коммит
4788d03588
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче