Fixes issue #70 - Invite others reports null when pressed too early.

This commit is contained in:
yanas 2014-05-21 15:12:51 +02:00
parent e6aba30c09
commit 4d0c74879a
1 changed files with 16 additions and 12 deletions

6
app.js
View File

@ -1213,7 +1213,6 @@ function buttonClick(id, classname) {
* @param messageString the text of the message * @param messageString the text of the message
*/ */
function openMessageDialog(titleString, messageString) { function openMessageDialog(titleString, messageString) {
console.log("OPEN MESSAGE DIALOG");
$.prompt(messageString, $.prompt(messageString,
{ {
title: titleString, title: titleString,
@ -1288,6 +1287,11 @@ function openLockDialog() {
* Opens the invite link dialog. * Opens the invite link dialog.
*/ */
function openLinkDialog() { function openLinkDialog() {
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="' + $.prompt('<input id="inviteLinkRef" type="text" value="' +
encodeURI(roomUrl) + '" onclick="this.select();" readonly>', encodeURI(roomUrl) + '" onclick="this.select();" readonly>',
{ {