[Libreoffice-commits] online.git: loleaflet/src

gokaysatir (via logerrit) logerrit at kemper.freedesktop.org
Sun Apr 5 12:23:55 UTC 2020


 loleaflet/src/control/Control.Tabs.js |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit cd73939022c9d348384545f50cad501bc4e17fd0
Author:     gokaysatir <gokaysatir at gmail.com>
AuthorDate: Thu Apr 2 14:31:43 2020 +0300
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Sun Apr 5 14:23:34 2020 +0200

    calc-rename sheet-initially select existing name
    
    Change-Id: Ifb4f28f5f60e7bd514b4fca4dddc000d19237e8b
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91565
    Tested-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/loleaflet/src/control/Control.Tabs.js b/loleaflet/src/control/Control.Tabs.js
index 182a154c0..505fd51ce 100644
--- a/loleaflet/src/control/Control.Tabs.js
+++ b/loleaflet/src/control/Control.Tabs.js
@@ -218,7 +218,8 @@ L.Control.Tabs = L.Control.extend({
 				$.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 />',
+			input: '<input name="sheetname" id="rename-calc-sheet-modal" type="text" value="' + $('#spreadsheet-tab' + this._tabForContextMenu).text() + '" required />',
+			afterOpen: function() { document.getElementById('rename-calc-sheet-modal').select(); },
 			callback: function(data) {
 				map.renamePage(data.sheetname, nPos);
 			}


More information about the Libreoffice-commits mailing list