diff --git a/index.html b/index.html
index 98bfba5fd..c009a3758 100644
--- a/index.html
+++ b/index.html
@@ -19,7 +19,7 @@
-
+
diff --git a/lang/main.json b/lang/main.json
index 5c121da54..e90f2e05a 100644
--- a/lang/main.json
+++ b/lang/main.json
@@ -178,7 +178,10 @@
"gracefulShutdown": "Our service is currently down for maintenance. Please try again later.",
"Yes": "Yes",
"reservationError": "Reservation system error",
- "reservationErrorMsg": "Error code: __code__, message: __msg__"
+ "reservationErrorMsg": "Error code: __code__, message: __msg__",
+ "password": "password",
+ "userPassword": "user password",
+ "token": "token"
}
}
diff --git a/libs/app.bundle.js b/libs/app.bundle.js
index 1802f4dbd..94fa960a2 100644
--- a/libs/app.bundle.js
+++ b/libs/app.bundle.js
@@ -1715,7 +1715,10 @@ function onPasswordReqiured(callback) {
message += APP.translation.translateString(
"dialog.passwordRequired");
message += '' +
- '';
+ '';
messageHandler.openTwoButtonDialog(null, null, null, message,
true,
@@ -1881,7 +1884,8 @@ UI.showLoginPopup = function(callback)
'' +
'';
+ 'type="password" data-i18n="[placeholder]dialog.userPassword"' +
+ ' placeholder="user password">';
UI.messageHandler.openTwoButtonDialog(null, null, null, message,
true,
"dialog.Ok",
@@ -4747,10 +4751,12 @@ function toggleRecording() {
APP.xmpp.toggleRecording(function (callback) {
var msg = APP.translation.generateTranslatonHTML(
"dialog.recordingToken");
+ var token = APP.translation.translateString("dialog.token");
APP.UI.messageHandler.openTwoButtonDialog(null, null, null,
'
' + msg + '
' +
'',
+ ' data-i18n="[placeholder]dialog.token" ' +
+ 'placeholder="' + token + '" autofocus>',
false,
"dialog.Save",
function (e, v, m, f) {
@@ -5000,6 +5006,7 @@ var Toolbar = (function (my) {
messageHandler.openTwoButtonDialog(null, null, null,
'' + msg + '
' +
'',
false,
"dialog.Save",
diff --git a/modules/UI/UI.js b/modules/UI/UI.js
index ebf5d2ae5..cdf06de62 100644
--- a/modules/UI/UI.js
+++ b/modules/UI/UI.js
@@ -478,7 +478,10 @@ function onPasswordReqiured(callback) {
message += APP.translation.translateString(
"dialog.passwordRequired");
message += '' +
- '';
+ '';
messageHandler.openTwoButtonDialog(null, null, null, message,
true,
@@ -644,7 +647,8 @@ UI.showLoginPopup = function(callback)
'' +
'';
+ 'type="password" data-i18n="[placeholder]dialog.userPassword"' +
+ ' placeholder="user password">';
UI.messageHandler.openTwoButtonDialog(null, null, null, message,
true,
"dialog.Ok",
diff --git a/modules/UI/toolbars/Toolbar.js b/modules/UI/toolbars/Toolbar.js
index 3a30f8961..d902d8f09 100644
--- a/modules/UI/toolbars/Toolbar.js
+++ b/modules/UI/toolbars/Toolbar.js
@@ -128,10 +128,12 @@ function toggleRecording() {
APP.xmpp.toggleRecording(function (callback) {
var msg = APP.translation.generateTranslatonHTML(
"dialog.recordingToken");
+ var token = APP.translation.translateString("dialog.token");
APP.UI.messageHandler.openTwoButtonDialog(null, null, null,
'' + msg + '
' +
'',
+ ' data-i18n="[placeholder]dialog.token" ' +
+ 'placeholder="' + token + '" autofocus>',
false,
"dialog.Save",
function (e, v, m, f) {
@@ -381,6 +383,7 @@ var Toolbar = (function (my) {
messageHandler.openTwoButtonDialog(null, null, null,
'' + msg + '
' +
'',
false,
"dialog.Save",