diff options
| author | Nathan Dinsmore <queryselector@gmail.com> | 2013-04-19 11:01:13 -0400 |
|---|---|---|
| committer | Nathan Dinsmore <queryselector@gmail.com> | 2013-04-19 11:02:59 -0400 |
| commit | 7b08ca000bc874344eecc19603960c1a9e6bad24 (patch) | |
| tree | 6dab4bb5a61e15e607ea49a6196345d85632291e | |
| parent | 7681525cc2f3f900136d745dc95594b3a731dcd1 (diff) | |
| download | snap-byow-7b08ca000bc874344eecc19603960c1a9e6bad24.tar.gz snap-byow-7b08ca000bc874344eecc19603960c1a9e6bad24.zip | |
Fixed #53
Renaming a script variable presents a dialog entitled "Script variable name," while renaming a ring input still presents a dialog entitled "Input name"
| -rw-r--r-- | blocks.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -3443,16 +3443,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() ); |
