[Libreoffice-commits] online.git: loleaflet/dist
Henry Castro
hcastro at collabora.com
Tue Dec 20 18:47:06 UTC 2016
loleaflet/dist/toolbar/toolbar.js | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 9450f3938c16a35a7d261c31d830781782697797
Author: Henry Castro <hcastro at collabora.com>
Date: Tue Dec 20 14:41:37 2016 -0400
tdf#103776: Hide/Deactivate "Document repair" button
diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index 65b94f3..6d77909 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -1035,6 +1035,14 @@ map.on('commandstatechanged', function (e) {
}
}
}
+
+ if (id === 'undo' || id === 'redo') {
+ if (toolbar.get('undo').disabled && toolbar.get('redo').disabled) {
+ toolbar.disable('repair');
+ } else {
+ toolbar.enable('repair');
+ }
+ }
});
map.on('search', function (e) {
More information about the Libreoffice-commits
mailing list