diff options
author | gokaysatir <gokaysatir@collabora.com> | 2020-09-28 12:29:37 +0300 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-09-30 21:51:02 +0200 |
commit | d906bc19569dc14df6c693a4af3306ce87dc6b43 (patch) | |
tree | 3fb15d89bec0003e3d44a4aa670ec0239d85c0d1 | |
parent | 60eb0c015af92577d44847b40349ddb67547b99d (diff) |
Loleaflet Calc: Add language support for "show sheet" buttons.distro/collabora/co-4-2
Change-Id: I2e2fc8095be659b02ba9fb479e7159b9ec0af66e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103540
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103731
-rw-r--r-- | loleaflet/src/control/Parts.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/loleaflet/src/control/Parts.js b/loleaflet/src/control/Parts.js index 39a69fbd4..f654dc85f 100644 --- a/loleaflet/src/control/Parts.js +++ b/loleaflet/src/control/Parts.js @@ -3,7 +3,7 @@ * Document parts switching and selecting handler */ -/* global vex */ +/* global vex $ _ */ L.Map.include({ setPart: function (part, external, calledFromSetPartHandler) { @@ -369,8 +369,12 @@ L.Map.include({ } var socket_ = this._socket; - vex.dialog.confirm({ + vex.dialog.open({ unsafeMessage: container.outerHTML, + buttons: [ + $.extend({}, vex.dialog.buttons.NO, { text: _('Cancel') }), + $.extend({}, vex.dialog.buttons.YES, { text: _('OK') }) + ], callback: function (value) { if (value === true) { var checkboxList = document.querySelectorAll('input[id^="hidden-part-checkbox"]'); |