[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2' - loleaflet/src

gokaysatir (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 30 19:51:21 UTC 2020


 loleaflet/src/control/Parts.js |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit d906bc19569dc14df6c693a4af3306ce87dc6b43
Author:     gokaysatir <gokaysatir at collabora.com>
AuthorDate: Mon Sep 28 12:29:37 2020 +0300
Commit:     Andras Timar <andras.timar at 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 <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at 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"]');


More information about the Libreoffice-commits mailing list