|
|
@ -128,7 +128,7 @@ function initVroom(room) { |
|
|
|
} |
|
|
|
} |
|
|
|
else{ |
|
|
|
else{ |
|
|
|
$('.ownerEl').hide(500); |
|
|
|
$('.ownerEl').hide(500); |
|
|
|
if (data.auth == 'yes'){ |
|
|
|
if (data.owner_auth == 'yes'){ |
|
|
|
$('.unauthEl').show(500); |
|
|
|
$('.unauthEl').show(500); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -514,6 +514,7 @@ function initVroom(room) { |
|
|
|
$('#inviteEmail').submit(function(event) { |
|
|
|
$('#inviteEmail').submit(function(event) { |
|
|
|
event.preventDefault(); |
|
|
|
event.preventDefault(); |
|
|
|
var rcpt = $('#recipient').val(); |
|
|
|
var rcpt = $('#recipient').val(); |
|
|
|
|
|
|
|
message = $('#message').val(); |
|
|
|
// Simple email address verification
|
|
|
|
// Simple email address verification
|
|
|
|
if (!rcpt.match(/\S+@\S+\.\S+/)){ |
|
|
|
if (!rcpt.match(/\S+@\S+\.\S+/)){ |
|
|
|
$.notify(locale.ERROR_MAIL_INVALID, 'error'); |
|
|
|
$.notify(locale.ERROR_MAIL_INVALID, 'error'); |
|
|
@ -523,6 +524,7 @@ function initVroom(room) { |
|
|
|
data: { |
|
|
|
data: { |
|
|
|
action: 'invite', |
|
|
|
action: 'invite', |
|
|
|
recipient: rcpt, |
|
|
|
recipient: rcpt, |
|
|
|
|
|
|
|
message: message, |
|
|
|
room: roomName |
|
|
|
room: roomName |
|
|
|
}, |
|
|
|
}, |
|
|
|
error: function(data) { |
|
|
|
error: function(data) { |
|
|
@ -531,7 +533,7 @@ function initVroom(room) { |
|
|
|
}, |
|
|
|
}, |
|
|
|
success: function(data) { |
|
|
|
success: function(data) { |
|
|
|
$.notify(data.msg, 'success'); |
|
|
|
$.notify(data.msg, 'success'); |
|
|
|
$('#recipient').val(''); |
|
|
|
$('#recipient,#message').val(''); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|