From 9ce4b2e1b68fa6c05b66b412f6fb5adb25c78382 Mon Sep 17 00:00:00 2001 From: Jens Mönig Date: Mon, 18 May 2015 12:31:28 +0200 Subject: Fix encoding for exported sprites (esp. comments) --- history.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'history.txt') diff --git a/history.txt b/history.txt index 7f60776..33d3a82 100755 --- a/history.txt +++ b/history.txt @@ -2510,3 +2510,7 @@ ______ * Threads: return empty string when querying first letter of a list * GUI: hide “save to disk” option behind shift-click again (has issues in Chrome) * GUI: parameters for embedding projects in iFrames, thanks, Bernat! + +150518 +------ +* Objects, GUI: Fix encoding for exported sprites (esp. comments) -- cgit v1.3.1 From 1a4721ef4ac844c668a1614cf3a6e728c624aa7c Mon Sep 17 00:00:00 2001 From: Jens Mönig Date: Thu, 21 May 2015 20:19:22 +0200 Subject: Fix encoding for exported libraries of global blocks --- byob.js | 6 ++++-- history.txt | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'history.txt') diff --git a/byob.js b/byob.js index bc0f75f..86b6b4b 100644 --- a/byob.js +++ b/byob.js @@ -106,7 +106,7 @@ SymbolMorph, isNil*/ // Global stuff //////////////////////////////////////////////////////// -modules.byob = '2015-May-01'; +modules.byob = '2015-May-21'; // Declarations @@ -3297,7 +3297,9 @@ BlockExportDialogMorph.prototype.selectNone = function () { // BlockExportDialogMorph ops BlockExportDialogMorph.prototype.exportBlocks = function () { - var str = this.serializer.serialize(this.blocks); + var str = encodeURIComponent( + this.serializer.serialize(this.blocks) + ); if (this.blocks.length > 0) { window.open(encodeURI('data:text/xml,' + str - + '')); + + ''); } else { new DialogBoxMorph().inform( 'Export blocks', diff --git a/history.txt b/history.txt index 62d267d..adaf659 100755 --- a/history.txt +++ b/history.txt @@ -2518,3 +2518,7 @@ ______ 150521 ------ * BYOB: Fix encoding for exported libraries of global blocks + +150521 +------ +* BYOB: Fix encoding glitch -- cgit v1.3.1 From 44e4f5d94bc6e448beb46e5d688153c8203d6da8 Mon Sep 17 00:00:00 2001 From: Jens Mönig Date: Mon, 8 Jun 2015 15:46:22 +0200 Subject: fixed #820 --- blocks.js | 7 ++++++- history.txt | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'history.txt') diff --git a/blocks.js b/blocks.js index 8049e59..27aae82 100644 --- a/blocks.js +++ b/blocks.js @@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2015-May-01'; +modules.blocks = '2015-June-08'; var SyntaxElementMorph; @@ -3082,6 +3082,11 @@ BlockMorph.prototype.fullCopy = function () { ans.allChildren().filter(function (block) { if (block instanceof SyntaxElementMorph) { block.cachedInputs = null; + if (block instanceof InputSlotMorph) { + block.contents().clearSelection(); + } + } else if (block instanceof CursorMorph) { + block.destroy(); } return !isNil(block.comment); }).forEach(function (block) { diff --git a/history.txt b/history.txt index adaf659..f9ea785 100755 --- a/history.txt +++ b/history.txt @@ -2522,3 +2522,7 @@ ______ 150521 ------ * BYOB: Fix encoding glitch + +150608 +------ +* Blocks: Fixed #820 -- cgit v1.3.1