kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #2323 from swiperthefox/project-note-editor
Fix a bug of the project note editing dialogpull/89/head
commit
28f2dfcca6
12
src/gui.js
12
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();
|
||||
|
|
Ładowanie…
Reference in New Issue