replace unnecessary setting of raw "html" with "text"

This commit is contained in:
Martin Raifer
2021-11-18 17:27:38 +01:00
parent 12f546d6e6
commit 040257fd44
46 changed files with 139 additions and 137 deletions
+2 -2
View File
@@ -148,7 +148,7 @@ export function uiNoteEditor(context) {
.append('h4')
.attr('class', '.note-save-header')
.html(function() {
return _note.isNew() ? t('note.newDescription') : t('note.newComment');
return _note.isNew() ? t.html('note.newDescription') : t.html('note.newComment');
});
var commentTextarea = noteSaveEnter
@@ -368,7 +368,7 @@ export function uiNoteEditor(context) {
.html(function(d) {
var action = (d.status === 'open' ? 'close' : 'open');
var andComment = (d.newComment ? '_comment' : '');
return t('note.' + action + andComment);
return t.html('note.' + action + andComment);
})
.on('click.status', clickStatus);