pull/3/merge
Michael Aschauer 2015-07-21 20:03:57 +02:00
rodzic 5d65fd0d49
commit 5c7194799e
3 zmienionych plików z 7 dodań i 5 usunięć

2
gui.js
Wyświetl plik

@ -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;

Wyświetl plik

@ -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 + "/";
}

Wyświetl plik

@ -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');