loleaflet/dist/toolbar/toolbar.js |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 9450f3938c16a35a7d261c31d830781782697797
Author: Henry Castro <[email protected]>
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) {
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to