Fixes issue #70 - Invite others reports null when pressed too early.
This commit is contained in:
parent
e6aba30c09
commit
4d0c74879a
28
app.js
28
app.js
|
@ -1213,7 +1213,6 @@ function buttonClick(id, classname) {
|
|||
* @param messageString the text of the message
|
||||
*/
|
||||
function openMessageDialog(titleString, messageString) {
|
||||
console.log("OPEN MESSAGE DIALOG");
|
||||
$.prompt(messageString,
|
||||
{
|
||||
title: titleString,
|
||||
|
@ -1288,17 +1287,22 @@ function openLockDialog() {
|
|||
* Opens the invite link dialog.
|
||||
*/
|
||||
function openLinkDialog() {
|
||||
$.prompt('<input id="inviteLinkRef" type="text" value="' +
|
||||
encodeURI(roomUrl) + '" onclick="this.select();" readonly>',
|
||||
{
|
||||
title: "Share this link with everyone you want to invite",
|
||||
persistent: false,
|
||||
buttons: { "Cancel": false},
|
||||
loaded: function (event) {
|
||||
document.getElementById('inviteLinkRef').select();
|
||||
}
|
||||
}
|
||||
);
|
||||
if (roomUrl == null)
|
||||
openMessageDialog( "Invite others",
|
||||
"Your conference is currently being created."
|
||||
+ " Please try again in a few seconds.");
|
||||
else
|
||||
$.prompt('<input id="inviteLinkRef" type="text" value="' +
|
||||
encodeURI(roomUrl) + '" onclick="this.select();" readonly>',
|
||||
{
|
||||
title: "Share this link with everyone you want to invite",
|
||||
persistent: false,
|
||||
buttons: { "Cancel": false},
|
||||
loaded: function (event) {
|
||||
document.getElementById('inviteLinkRef').select();
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue