loleaflet/src/control/Parts.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
New commits: commit d906bc19569dc14df6c693a4af3306ce87dc6b43 Author: gokaysatir <gokaysa...@collabora.com> AuthorDate: Mon Sep 28 12:29:37 2020 +0300 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Wed Sep 30 21:51:02 2020 +0200 Loleaflet Calc: Add language support for "show sheet" buttons. Change-Id: I2e2fc8095be659b02ba9fb479e7159b9ec0af66e Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103540 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103731 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"]'); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits