notify user when joining without name provided

This commit is contained in:
Zachary Chai
2017-03-14 16:09:20 -04:00
parent 8d4aaeff03
commit 4d652463ec
7 changed files with 43 additions and 20 deletions

View File

@ -35,12 +35,15 @@ var loopJoin = function() {
};
var alertTimeout = null;
var showAlert = function(html, timeout_delay) {
var showAlert = function(html, timeout_delay, type) {
type = type || 'success'
if (!html) {
return;
}
$('.alert-template .alert-message').html(html);
$('.alert-template .alert').removeClass('alert-success alert-danger alert-info alert-warning').addClass('alert-'+type);
$('#alerts').html($('.alert-template').html());
if (timeout_delay) {