Merge pull request #2323 from swiperthefox/project-note-editor

Fix a bug of the project note editing dialog
pull/89/head
Jens Mönig 2019-02-20 06:52:03 +01:00 zatwierdzone przez GitHub
commit 28f2dfcca6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 7 dodań i 5 usunięć

Wyświetl plik

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