Fix file upload and remove unnecessary dependencies

This commit is contained in:
yflory committed 2017-12-01 10:16:48 +01:00
1 parent 664625a6ef
commit bd85f1b003
5 files changed
+15 -16

No files matched your search

+1 -1
View File
@@ -568,7 +568,7 @@ define([
Store.addPad({
href: href,
title: title,
path: store.data && store.data.initialPath
path: data.path || (store.data && store.data.initialPath)
}, cb);
return;
}
+1 -2
View File
@@ -58,8 +58,7 @@ define([
if (noStore) { return void onComplete(href); }
common.initialPath = path;
common.renamePad(title || "", href, function (err) {
common.setPadTitle(title || "", href, path, function (err) {
if (err) { return void console.error(err); }
onComplete(href);
common.setPadAttribute('fileType', metadata.type, null, href);