diff --git a/src/gui.js b/src/gui.js index 3e9ea7f5..b97b9a60 100644 --- a/src/gui.js +++ b/src/gui.js @@ -3749,7 +3749,6 @@ IDE_Morph.prototype.editProjectNotes = function () { var dialog = new DialogBoxMorph().withKey('projectNotes'), frame = new ScrollFrameMorph(), text = new TextMorph(this.projectNotes || ''), - ok = dialog.ok, myself = this, size = 250, world = this.world(); @@ -3776,10 +3775,13 @@ IDE_Morph.prototype.editProjectNotes = function () { frame.addContents(text); text.drawNew(); - dialog.ok = function () { - myself.projectNotes = text.text; - ok.call(this); - }; + dialog.getInput = function () { + return text.text; + } + dialog.target = myself; + dialog.action = function (note) { + myself.projectNotes = note; + } dialog.justDropped = function () { text.edit();