kopia lustrzana https://github.com/backface/turtlestitch
fix saving project to cloud
rodzic
a2488194d6
commit
aeb1b5d473
|
@ -57,8 +57,6 @@ Project.prototype.toXML = function (serializer) {
|
||||||
thumbdata = null;
|
thumbdata = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(this)
|
|
||||||
|
|
||||||
return serializer.format(
|
return serializer.format(
|
||||||
'<project name="@" app="@" version="@">' +
|
'<project name="@" app="@" version="@">' +
|
||||||
'<notes>$</notes>' +
|
'<notes>$</notes>' +
|
||||||
|
|
|
@ -175,24 +175,13 @@ BeetleCloud.prototype.saveProject = function (ignorethis, discardthis, callBack,
|
||||||
this.checkCredentials(
|
this.checkCredentials(
|
||||||
function (user) {
|
function (user) {
|
||||||
if (user.username) {
|
if (user.username) {
|
||||||
/*
|
project = new Project(myself.ide.scenes, myself.ide.scene);
|
||||||
projectBody = myself.ide.buildProjectRequest();
|
project.name = myself.ide.projectName;
|
||||||
projectSize = myself.ide.verifyProject(projectBody);
|
project.notes = myself.ide.projectNotes;
|
||||||
if (!projectSize) {
|
project.origName = myself.ide.origName;
|
||||||
myself.ide.showMessage('Serialization of program data failed:\n' + err);
|
project.origCreator = myself.ide.origCreator;
|
||||||
throw new Error('Serialization of program data failed:\n' + err);
|
project.creator = myself.ide.creator;
|
||||||
} // Invalid Projects don't return anything.
|
project.remixHistory = myself.ide.remixHistory;
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
// var pdata = myself.ide.serializer.serialize(projectBody);
|
|
||||||
project = new Project(this.scenes, this.scene);
|
|
||||||
project.name = this.projectName;
|
|
||||||
project.notes = this.projectNotes;
|
|
||||||
project.origName = this.origName;
|
|
||||||
project.origCreator = this.origCreator;
|
|
||||||
project.creator = this.creator;
|
|
||||||
project.remixHistory = this.remixHistory;
|
|
||||||
|
|
||||||
var pdata = myself.ide.serializer.serialize(project);
|
var pdata = myself.ide.serializer.serialize(project);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue