[Libreoffice-commits] online.git: loleaflet/src
Andras Timar
andras.timar at collabora.com
Fri Feb 9 14:18:16 UTC 2018
loleaflet/src/control/Control.AlertDialog.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 7f3e6e96b207d1106d913d0c0b61f3973752255d
Author: Andras Timar <andras.timar at collabora.com>
Date: Fri Feb 9 15:16:08 2018 +0100
fix variable replacement in string
Change-Id: Id99f1e04c508678e0acfc040511e327910e04772
Reviewed-on: https://gerrit.libreoffice.org/49496
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Tested-by: Andras Timar <andras.timar at collabora.com>
diff --git a/loleaflet/src/control/Control.AlertDialog.js b/loleaflet/src/control/Control.AlertDialog.js
index f91fceae..1d9b9e48 100644
--- a/loleaflet/src/control/Control.AlertDialog.js
+++ b/loleaflet/src/control/Control.AlertDialog.js
@@ -26,8 +26,8 @@ L.Control.AlertDialog = L.Control.extend({
return;
} else if (e.cmd && e.kind) {
var msg = _('The server encountered a %0 error while parsing the %1 command.');
- msg.replace('%0', e.kind);
- msg.replace('%1', e.cmd);
+ msg = msg.replace('%0', e.kind);
+ msg = msg.replace('%1', e.cmd);
vex.dialog.alert(msg);
}
More information about the Libreoffice-commits
mailing list