[Libreoffice-commits] online.git: loleaflet/src
Andras Timar (via logerrit)
logerrit at kemper.freedesktop.org
Wed Feb 19 15:05:08 UTC 2020
loleaflet/src/control/Control.Tabs.js | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 207075f82cb644133eea20b3c99af7b40b08076d
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:04:48 2020 +0100
localize the buttons on 'Rename sheet' dialog
Change-Id: I6470deb2cfa93d59ebb612d223bb2829a6cea75e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89026
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.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 40f4c6ab7..7d5e12e94 100644
--- a/loleaflet/src/control/Control.Tabs.js
+++ b/loleaflet/src/control/Control.Tabs.js
@@ -192,6 +192,10 @@ L.Control.Tabs = L.Control.extend({
var nPos = this._tabForContextMenu;
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="' + $('#spreadsheet-tab' + this._tabForContextMenu).text() + '" required />',
callback: function(data) {
map.renamePage(data.sheetname, nPos);
More information about the Libreoffice-commits
mailing list