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

Andras Timar (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 19 15:30:41 UTC 2020


 loleaflet/src/control/Control.Tabs.js |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 8699dc4f9e46f8cf928c16e81f244b2b3f50b565
Author:     Andras Timar <andras.timar at collabora.com>
AuthorDate: Wed Feb 19 15:06:16 2020 +0100
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Wed Feb 19 16:30:23 2020 +0100

    localize the buttons on 'Rename sheet' dialog
    
    Change-Id: I6470deb2cfa93d59ebb612d223bb2829a6cea75e
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88956
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/loleaflet/src/control/Control.Tabs.js b/loleaflet/src/control/Control.Tabs.js
index c963e9892..8804495ca 100644
--- a/loleaflet/src/control/Control.Tabs.js
+++ b/loleaflet/src/control/Control.Tabs.js
@@ -87,6 +87,10 @@ L.Control.Tabs = L.Control.extend({
 								var nPos = parseInt(options.$trigger.attr('id').split('spreadsheet-tab')[1]);
 								vex.dialog.open({
 									message: _('Enter new sheet name'),
+									buttons: [
+										$.extend({}, vex.dialog.buttons.YES, { text: _('OK') }),
+										$.extend({}, vex.dialog.buttons.NO, { text: _('Cancel') })
+									],
 									input: '<input name="sheetname" type="text" value="' + options.$trigger.text() + '" required />',
 									callback: function(data) {
 										map.renamePage(data.sheetname, nPos);


More information about the Libreoffice-commits mailing list