summaryrefslogtreecommitdiff
path: root/blocks.js
diff options
context:
space:
mode:
authorJens Mönig <jens@moenig.org>2013-04-23 08:04:41 -0700
committerJens Mönig <jens@moenig.org>2013-04-23 08:04:41 -0700
commit5571c656de1afbeb68beba4b22b83b9ea2204258 (patch)
tree3c47ec7e95426a04390bf650941706a0818dd0aa /blocks.js
parent4fc82b7f067adcc979c4497dd1429f0ad8979f75 (diff)
parent7b08ca000bc874344eecc19603960c1a9e6bad24 (diff)
downloadsnap-byow-5571c656de1afbeb68beba4b22b83b9ea2204258.tar.gz
snap-byow-5571c656de1afbeb68beba4b22b83b9ea2204258.zip
Merge pull request #58 from queryselector/issue-53
Fixed #53
Diffstat (limited to 'blocks.js')
-rw-r--r--blocks.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/blocks.js b/blocks.js
index 44ffdb5..7ace781 100644
--- a/blocks.js
+++ b/blocks.js
@@ -3444,16 +3444,19 @@ ReporterBlockMorph.prototype.getSlotSpec = function () {
// ReporterBlockMorph events
ReporterBlockMorph.prototype.mouseClickLeft = function (pos) {
+ var isRing;
if (this.parent instanceof BlockInputFragmentMorph) {
return this.parent.mouseClickLeft();
}
if (this.parent instanceof TemplateSlotMorph) {
+ isRing = this.parent.parent && this.parent.parent.parent &&
+ this.parent.parent.parent instanceof RingMorph;
new DialogBoxMorph(
this,
this.setSpec,
this
).prompt(
- "Input name",
+ isRing ? "Input name" : "Script variable name",
this.blockSpec,
this.world()
);