Removes title param from openTwoButtonDialog.
This commit is contained in:
parent
b5f0d30298
commit
f0ac52614b
|
@ -770,7 +770,6 @@ UI.connectionIndicatorShowMore = function(id) {
|
|||
UI.showLoginPopup = function(callback) {
|
||||
console.log('password is required');
|
||||
let titleKey = "dialog.passwordRequired";
|
||||
let titleString = APP.translation.translateString(titleKey);
|
||||
|
||||
let message = (
|
||||
`<input name="username" type="text"
|
||||
|
@ -790,7 +789,6 @@ UI.showLoginPopup = function(callback) {
|
|||
|
||||
messageHandler.openTwoButtonDialog({
|
||||
titleKey,
|
||||
titleString,
|
||||
msgString: message,
|
||||
leftButtonKey: 'dialog.Ok',
|
||||
submitFunction,
|
||||
|
@ -1242,7 +1240,6 @@ UI.showExtensionExternalInstallationDialog = function (url) {
|
|||
|
||||
messageHandler.openTwoButtonDialog({
|
||||
titleKey: 'dialog.externalInstallationTitle',
|
||||
titleString: '',
|
||||
msgKey: 'dialog.externalInstallationMsg',
|
||||
msgString: '',
|
||||
leftButtonKey: 'dialog.goToStore',
|
||||
|
|
|
@ -279,7 +279,6 @@ function showSipNumberInput () {
|
|||
? config.defaultSipNumber
|
||||
: '';
|
||||
let titleKey = "dialog.sipMsg";
|
||||
let sipMsg = APP.translation.generateTranslationHTML("dialog.sipMsg");
|
||||
let msgString = (`
|
||||
<input name="sipNumber" type="text"
|
||||
value="${defaultNumber}" autofocus>
|
||||
|
@ -287,7 +286,6 @@ function showSipNumberInput () {
|
|||
|
||||
APP.UI.messageHandler.openTwoButtonDialog({
|
||||
titleKey,
|
||||
titleString: sipMsg,
|
||||
msgString,
|
||||
leftButtonKey: "dialog.Dial",
|
||||
submitFunction: function (e, v, m, f) {
|
||||
|
|
|
@ -61,7 +61,7 @@ var messageHandler = {
|
|||
* Shows a message to the user with two buttons: first is given as a
|
||||
* parameter and the second is Cancel.
|
||||
*
|
||||
* @param titleString the title of the message
|
||||
* @param titleKey the key for the title of the message
|
||||
* @param msgString the text of the message
|
||||
* @param persistent boolean value which determines whether the message is
|
||||
* persistent or not
|
||||
|
@ -79,7 +79,6 @@ var messageHandler = {
|
|||
openTwoButtonDialog: function(options) {
|
||||
let {
|
||||
titleKey,
|
||||
titleString,
|
||||
msgKey,
|
||||
msgString,
|
||||
leftButtonKey,
|
||||
|
@ -107,10 +106,8 @@ var messageHandler = {
|
|||
= APP.translation.generateTranslationHTML("dialog.Cancel");
|
||||
buttons.push({title: cancelButton, value: false});
|
||||
|
||||
var message = msgString, title = titleString;
|
||||
if (titleKey) {
|
||||
title = APP.translation.generateTranslationHTML(titleKey);
|
||||
}
|
||||
var message = msgString;
|
||||
var title = APP.translation.generateTranslationHTML(titleKey);
|
||||
if (msgKey) {
|
||||
message = APP.translation.generateTranslationHTML(msgKey);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue