[Libreoffice-commits] online.git: loleaflet/src
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Apr 10 16:52:19 UTC 2019
loleaflet/src/control/Control.Toolbar.js | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 18b6bb9ba7121c9ebeeb01762587db992b6d3358
Author: Aron Budea <aron.budea at collabora.com>
AuthorDate: Wed Apr 10 11:53:29 2019 +0200
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Wed Apr 10 18:52:01 2019 +0200
Update Save icon when document is changed
It was not showing modified status.
Regression since 1d2b0415b92f629ea4e73cb2265cba0bca6e2111
Change-Id: I5604dc87613fc5052b5932aaabf470fc4fb8d1bf
Reviewed-on: https://gerrit.libreoffice.org/70514
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/loleaflet/src/control/Control.Toolbar.js b/loleaflet/src/control/Control.Toolbar.js
index 7578a0296..43cb889c9 100644
--- a/loleaflet/src/control/Control.Toolbar.js
+++ b/loleaflet/src/control/Control.Toolbar.js
@@ -1677,6 +1677,14 @@ function onCommandStateChanged(e) {
else if (commandName === '.uno:LanguageStatus') {
updateToolbarItem(statusbar, 'LanguageStatus', $('#LanguageStatus').html(_(state)).parent().html());
}
+ else if (commandName === '.uno:ModifiedStatus') {
+ if (e.state === 'true') {
+ w2ui['editbar'].set('save', {img:'savemodified'});
+ }
+ else {
+ w2ui['editbar'].set('save', {img:'save'});
+ }
+ }
else if (commandName === '.uno:StatusDocPos') {
state = toLocalePattern('Sheet %1 of %2', 'Sheet (\\d+) of (\\d+)', state, '%1', '%2');
updateToolbarItem(statusbar, 'StatusDocPos', $('#StatusDocPos').html(state ? state : '  ').parent().html());
More information about the Libreoffice-commits
mailing list