зеркало из https://github.com/nextcloud/spreed.git
Merge pull request #555 from nextcloud/fix-the-update-of-the-editabletextlabel-input
Fix the update of the EditableTextLabel input
This commit is contained in:
Коммит
505f2d55c0
|
@ -179,6 +179,8 @@
|
|||
},
|
||||
|
||||
showInput: function() {
|
||||
this.getUI('input').val(this.model.get(this.modelAttribute));
|
||||
|
||||
this.getUI('inputWrapper').removeClass('hidden-important');
|
||||
this.getUI('labelWrapper').addClass('hidden-important');
|
||||
|
||||
|
@ -196,7 +198,7 @@
|
|||
this.confirmEdit();
|
||||
} else if (event.keyCode === 27) {
|
||||
// ESC
|
||||
this.discardEdit();
|
||||
this.hideInput();
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -221,11 +223,6 @@
|
|||
this.model.save(this.modelAttribute, newText, options);
|
||||
},
|
||||
|
||||
discardEdit: function() {
|
||||
this.hideInput();
|
||||
this.getUI('input').val(this.model.get(this.modelAttribute));
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
OCA.SpreedMe.Views.EditableTextLabel = EditableTextLabel;
|
||||
|
|
Загрузка…
Ссылка в новой задаче