mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2025-01-07 10:56:29 +01:00
autoLoad sketch
This commit is contained in:
parent
03eb8da096
commit
d9015ea49c
@ -32,6 +32,8 @@ function listSketches() {
|
|||||||
curSketch = sketches.length-1;
|
curSketch = sketches.length-1;
|
||||||
setSketchModified(false);
|
setSketchModified(false);
|
||||||
updateSketchButtonStates();
|
updateSketchButtonStates();
|
||||||
|
|
||||||
|
if (autoLoadSketchId) loadSketch(autoLoadSketchId);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,8 @@ var app = function() {
|
|||||||
var doodles = [];
|
var doodles = [];
|
||||||
var appURL = '/';
|
var appURL = '/';
|
||||||
|
|
||||||
API.setURL('/d3dapi/'); //10.0.0.212
|
if (location.host=='doodle3d') API.setURL('http://wifibox/d3dapi/'); //local
|
||||||
|
else API.setURL('/d3dapi/');
|
||||||
|
|
||||||
init();
|
init();
|
||||||
|
|
||||||
@ -90,7 +91,7 @@ var app = function() {
|
|||||||
|
|
||||||
sketchAPI.save(doodle.getSvgFileData(),function(response) {
|
sketchAPI.save(doodle.getSvgFileData(),function(response) {
|
||||||
console.log('saved!',response);
|
console.log('saved!',response);
|
||||||
location.href = appURL; // + "&load=" + response.id;
|
location.href = appURL + "?load=" + response.id;
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user