forked from cory/tildefriends
Oh, votes are slowing everything down. Batch them and simplify.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3648 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -231,7 +231,6 @@ function save() {
|
||||
type: "tildefriends-app",
|
||||
files: Object.fromEntries(Object.keys(gFiles).map(x => [x, gFiles[x].id || gApp.files[x]])),
|
||||
};
|
||||
console.log(app);
|
||||
Object.values(gFiles).forEach(function(file) { delete file.id; });
|
||||
gApp = JSON.parse(JSON.stringify(app));
|
||||
|
||||
@ -285,7 +284,6 @@ function save() {
|
||||
var anySkipped = false;
|
||||
Object.values(gFiles).forEach(function(file) {
|
||||
if (file.doc.isClean(file.generation)) {
|
||||
console.log("Not saving clean file.");
|
||||
anySkipped = true;
|
||||
return;
|
||||
}
|
||||
@ -320,7 +318,6 @@ function save() {
|
||||
always();
|
||||
});
|
||||
|
||||
console.log("Saving file");
|
||||
file.request.open("POST", "/save", true);
|
||||
file.request.setRequestHeader("Content-Type", "text/plain");
|
||||
file.request.send(file.doc.getValue());
|
||||
|
Reference in New Issue
Block a user