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:
Pedro Pinto Silva 2019-11-29 13:55:07 +01:00 committed by Pedro Pinto da Silva
parent 5998fe23d4
commit f2042d526d

View file

@ -1771,7 +1771,7 @@ function onCommandStateChanged(e) {
} }
updateToolbarItem(statusbar, 'LanguageStatus', $('#LanguageStatus').html(language).parent().html()); updateToolbarItem(statusbar, 'LanguageStatus', $('#LanguageStatus').html(language).parent().html());
w2ui['editbar'].set('languagecode', {text: code}); w2ui['editbar'].set('languagecode', {text: code});
$('#tb_actionbar_item_LanguageStatus table table td:first-of-type').append(language+'&nbsp;'); $('#tb_actionbar_item_LanguageStatus table table td:first-of-type').html(language+'&nbsp;');
} }
else if (commandName === '.uno:ModifiedStatus') { else if (commandName === '.uno:ModifiedStatus') {
if (e.state === 'true') { if (e.state === 'true') {