Renaming a script variable presents a dialog entitled "Script variable name," while renaming a ring input still presents a dialog entitled "Input name"
pull/3/merge
Nathan Dinsmore 2013-04-19 11:01:13 -04:00
rodzic 7681525cc2
commit 7b08ca000b
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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()
);