kopia lustrzana https://github.com/backface/turtlestitch
fix the fix
rodzic
5d65fd0d49
commit
5c7194799e
2
gui.js
2
gui.js
|
@ -4261,7 +4261,7 @@ ProjectDialogMorph.prototype.init = function (ide, task) {
|
|||
// additional properties:
|
||||
this.ide = ide;
|
||||
this.task = task || 'open'; // String describing what do do (open, save)
|
||||
this.source = ide.source || 'local'; // or 'cloud' or 'examples'
|
||||
this.source = 'local' // ide.source || 'local'; // or 'cloud' or 'examples'
|
||||
this.projectList = []; // [{name: , thumb: , notes:}]
|
||||
|
||||
this.handle = null;
|
||||
|
|
|
@ -22,9 +22,11 @@ tStitch.debug_msg = function (st,clear) {
|
|||
|
||||
tStitch.getBaseURL = function () {
|
||||
var url = location.href; // entire url including querystring - also: window.location.href;
|
||||
var mainURL = url.substring(0, url.lastIndexOf('#'));
|
||||
var baseURL = url.substring(0, mainURL.lastIndexOf('/'));
|
||||
return baseURL + "/";
|
||||
if (url.lastIndexOf('#') > 0) {
|
||||
url = url.substring(0, url.lastIndexOf('#'));
|
||||
}
|
||||
url = url.substring(0, url.lastIndexOf('/'));
|
||||
return url + "/";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -2070,7 +2070,7 @@ ProjectDialogMorph.prototype.buildContents = function () {
|
|||
}
|
||||
|
||||
//disable cloud for now
|
||||
//this.addSourceButton('cloud', localize('Cloud'), 'cloud');
|
||||
// this.addSourceButton('cloud', localize('Cloud'), 'cloud');
|
||||
this.addSourceButton('local', localize('Browser'), 'storage');
|
||||
if (this.task === 'open') {
|
||||
this.addSourceButton('examples', localize('Examples'), 'poster');
|
||||
|
|
Ładowanie…
Reference in New Issue