From 6f03f121ad59b8f3415ab98aa1fe77bd9d1edead Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Mon, 16 Nov 2015 18:31:19 -0800 Subject: [PATCH] Fix some file names in exporting content --- blocks.js | 2 +- gui.js | 2 +- objects.js | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/blocks.js b/blocks.js index 42ae4731..78320a27 100644 --- a/blocks.js +++ b/blocks.js @@ -1852,7 +1852,7 @@ SyntaxElementMorph.prototype.exportPictureWithResult = function (aBubble) { ctx.drawImage(scr, 0, pic.height - scr.height); ctx.drawImage(bub, scr.width + 2, 0); // request to open pic in new window. - ide.saveCanvasAs(pic, ide.projetName + ' ' + localize('scrip pic'), true); + ide.saveCanvasAs(pic, ide.projetName + ' ' + localize('script pic'), true); }; // SyntaxElementMorph code mapping diff --git a/gui.js b/gui.js index 6010d281..12bd658c 100644 --- a/gui.js +++ b/gui.js @@ -3098,7 +3098,7 @@ IDE_Morph.prototype.exportSprite = function (sprite) { + '">' + str + ''; - ide.saveXMLAs(str, sprite); + ide.saveXMLAs(str, sprite.name); }; IDE_Morph.prototype.exportScriptsPicture = function () { diff --git a/objects.js b/objects.js index 849b4176..c50e545a 100644 --- a/objects.js +++ b/objects.js @@ -5737,8 +5737,11 @@ StageMorph.prototype.userMenu = function () { menu.addItem( "pic...", function () { - // pass a canvas to be opened as a new window. - ide.saveCanvasAs(myself.fullImageClassic(), 'stage', true); + ide.saveCanvasAs( + myself.fullImageClassic(), + localize('stage'), + true // open as new window + ); }, 'open a new window\nwith a picture of the stage' );