[Libreoffice-commits] online.git: loleaflet/src
Pedro Pinto Silva (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jul 29 11:19:36 UTC 2020
loleaflet/src/control/Control.NotebookbarBuilder.js | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit e11112f43e8a5dce4f846248329628217b5d7f93
Author: Pedro Pinto Silva <pedro.silva at collabora.com>
AuthorDate: Wed Jul 29 12:07:48 2020 +0200
Commit: Pedro Silva <pedro.silva at collabora.com>
CommitDate: Wed Jul 29 13:19:17 2020 +0200
Notebookbar: check for StateChanged and
if there are things to be save change class from save icon
Change-Id: Iaacc48a62d7626b8cfc489efd80141b209039b2a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99677
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Pedro Silva <pedro.silva at collabora.com>
diff --git a/loleaflet/src/control/Control.NotebookbarBuilder.js b/loleaflet/src/control/Control.NotebookbarBuilder.js
index 5dbd14d27..e743ae794 100644
--- a/loleaflet/src/control/Control.NotebookbarBuilder.js
+++ b/loleaflet/src/control/Control.NotebookbarBuilder.js
@@ -163,6 +163,14 @@ L.Control.NotebookbarBuilder = L.Control.JSDialogBuilder.extend({
} else if (commandName === '.uno:StyleApply') {
$('#applystyle').val(state).trigger('change');
}
+ else if (commandName === '.uno:ModifiedStatus') {
+ if (e.state === 'true') {
+ $('#Saveimg').addClass('savemodified');
+ }
+ else {
+ $('#Saveimg').removeClass('savemodified');
+ }
+ }
},
_setupComboboxSelectionHandler: function(combobox, id, builder) {
More information about the Libreoffice-commits
mailing list