dev
Jens Mönig 2015-12-15 13:07:47 +01:00
rodzic 99784ca436
commit c56f5f6d0d
3 zmienionych plików z 12 dodań i 9 usunięć

12
gui.js
Wyświetl plik

@ -3038,7 +3038,7 @@ IDE_Morph.prototype.exportProject = function (name, plain, newWindow) {
dataPrefix = 'data:text/' + plain ? 'plain,' : 'xml,';
try {
menu = this.showMessage('Exporting');
str = this.serializer.serialize(this.stage)
str = this.serializer.serialize(this.stage);
this.setURL('#open:' + dataPrefix + encodeURIComponent(str));
this.saveXMLAs(str, name, newWindow);
menu.destroy();
@ -3690,7 +3690,7 @@ IDE_Morph.prototype.saveFileAs = function (
// Convert to binary data, in format Blob() can use.
if (hasTypeStr && components[0].indexOf('base64') > -1) {
text = atob(components[1]);
data = new Uint8Array(text.length),
data = new Uint8Array(text.length);
i = text.length;
while (i--) {
data[i] = text.charCodeAt(i);
@ -3706,7 +3706,7 @@ IDE_Morph.prototype.saveFileAs = function (
}
try {
blobIsSupported = !!new Blob;
blobIsSupported = !!new Blob();
} catch (e) {}
if (newWindow) {
@ -3746,7 +3746,7 @@ IDE_Morph.prototype.saveFileAs = function (
dialog.fixLayout();
dialog.drawNew();
}
}
};
IDE_Morph.prototype.saveCanvasAs = function (canvas, fileName, newWindow) {
// Export a Canvas object as a PNG image
@ -3759,12 +3759,12 @@ IDE_Morph.prototype.saveCanvasAs = function (canvas, fileName, newWindow) {
} else {
this.saveFileAs(canvas.toDataURL(), 'image/png', fileName, newWindow);
}
}
};
IDE_Morph.prototype.saveXMLAs = function(xml, fileName, newWindow) {
// wrapper to saving XML files with a proper type tag.
this.saveFileAs(xml, 'text/xml;chartset=utf-8', fileName, newWindow);
}
};
IDE_Morph.prototype.switchToUserMode = function () {
var world = this.world();

Wyświetl plik

@ -2797,12 +2797,14 @@ v4.0.4 draft features:
end - bulk of 151215
++++++++++++++++++++++++++
151215 - more changes
------
* Cloud: 10 MB cloud upload limit for media per project
151215 - contributions
------
* Objects, Paint: Automatic Sprite Center Detection, Thanks, Craxic!!
* Morphic: Handling of diacritics, [Alt] + key in input fields (Windows), Thanks, DaDoro!!
* NL translation update
* Use Blob API to Save Files (to Disk), Thanks, Michael!!
151215 - more changes
------
* Cloud: 10 MB cloud upload limit for media per project

Wyświetl plik

@ -18,6 +18,7 @@
<script type="text/javascript" src="locale.js"></script>
<script type="text/javascript" src="cloud.js"></script>
<script type="text/javascript" src="sha512.js"></script>
<script type="text/javascript" src="FileSaver.min.js"></script>
<script type="text/javascript">
var world;
window.onload = function () {