|
|
@ -1275,10 +1275,9 @@ function initVroom(room) { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// Add an email to be notified when someone joins
|
|
|
|
// Add an email to be notified when someone joins
|
|
|
|
// First, enable the add button when you start typing
|
|
|
|
// First, enable the add button when the input looks like an email address
|
|
|
|
// TODO: should be enabled only when the input looks like an email address
|
|
|
|
|
|
|
|
$('#newEmailNotification').on('input', function() { |
|
|
|
$('#newEmailNotification').on('input', function() { |
|
|
|
if ($('#newEmailNotification').val() == ''){ |
|
|
|
if (!$('#newEmailNotification').val().match(/^\S+\@\S+\.\S+$/)){ |
|
|
|
$('#newEmailNotificationButton').addClass('disabled'); |
|
|
|
$('#newEmailNotificationButton').addClass('disabled'); |
|
|
|
} |
|
|
|
} |
|
|
|
else{ |
|
|
|
else{ |
|
|
|