Language status: use rewrite html instead of appending content
Change-Id: If7e5d64148935b408d6d010cfec7694b2ebfb596 Reviewed-on: https://gerrit.libreoffice.org/84062 Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com> Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
This commit is contained in:
parent
5998fe23d4
commit
f2042d526d
1 changed files with 1 additions and 1 deletions
|
@ -1771,7 +1771,7 @@ function onCommandStateChanged(e) {
|
|||
}
|
||||
updateToolbarItem(statusbar, 'LanguageStatus', $('#LanguageStatus').html(language).parent().html());
|
||||
w2ui['editbar'].set('languagecode', {text: code});
|
||||
$('#tb_actionbar_item_LanguageStatus table table td:first-of-type').append(language+' ');
|
||||
$('#tb_actionbar_item_LanguageStatus table table td:first-of-type').html(language+' ');
|
||||
}
|
||||
else if (commandName === '.uno:ModifiedStatus') {
|
||||
if (e.state === 'true') {
|
||||
|
|
Loading…
Reference in a new issue