|
|
@ -586,11 +586,11 @@ function initAdminRooms(){ |
|
|
|
} |
|
|
|
} |
|
|
|
adjustAddRemoveEmailButtons(); |
|
|
|
adjustAddRemoveEmailButtons(); |
|
|
|
// Update config switches
|
|
|
|
// Update config switches
|
|
|
|
$('#lockedSet').bootstrapSwitch('state', data.locked == 'yes'); |
|
|
|
$('#lockedSet').bootstrapSwitch('state', data.locked); |
|
|
|
$('#askForNameSet').bootstrapSwitch('state', data.ask_for_name == 'yes'); |
|
|
|
$('#askForNameSet').bootstrapSwitch('state', data.ask_for_name); |
|
|
|
$('#joinPassSet').bootstrapSwitch('state', data.join_auth == 'yes'); |
|
|
|
$('#joinPassSet').bootstrapSwitch('state', data.join_auth); |
|
|
|
$('#ownerPassSet').bootstrapSwitch('state', data.owner_auth == 'yes'); |
|
|
|
$('#ownerPassSet').bootstrapSwitch('state', data.owner_auth); |
|
|
|
$('#persistentSet').bootstrapSwitch('state', data.persistent == 'yes'); |
|
|
|
$('#persistentSet').bootstrapSwitch('state', data.persistent); |
|
|
|
$('#maxMembers').val(data.max_members); |
|
|
|
$('#maxMembers').val(data.max_members); |
|
|
|
// Hide the password inputs
|
|
|
|
// Hide the password inputs
|
|
|
|
$('#joinPassFields,#ownerPassFields').hide(); |
|
|
|
$('#joinPassFields,#ownerPassFields').hide(); |
|
|
@ -767,7 +767,7 @@ function initVroom(room) { |
|
|
|
else{ |
|
|
|
else{ |
|
|
|
// Hide owner reserved elements
|
|
|
|
// Hide owner reserved elements
|
|
|
|
$('.ownerEl').hide(500); |
|
|
|
$('.ownerEl').hide(500); |
|
|
|
if (data.owner_auth == 'yes'){ |
|
|
|
if (data.owner_auth){ |
|
|
|
$('.unauthEl').show(500); |
|
|
|
$('.unauthEl').show(500); |
|
|
|
} |
|
|
|
} |
|
|
|
else{ |
|
|
|
else{ |
|
|
@ -775,12 +775,12 @@ function initVroom(room) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// Update config switches
|
|
|
|
// Update config switches
|
|
|
|
$('#lockedSet').bootstrapSwitch('state', data.locked == 'yes'); |
|
|
|
$('#lockedSet').bootstrapSwitch('state', data.locked); |
|
|
|
$('#askForNameSet').bootstrapSwitch('state', data.ask_for_name == 'yes'); |
|
|
|
$('#askForNameSet').bootstrapSwitch('state', data.ask_for_name); |
|
|
|
$('#joinPassSet').bootstrapSwitch('state', data.join_auth == 'yes'); |
|
|
|
$('#joinPassSet').bootstrapSwitch('state', data.join_auth); |
|
|
|
$('#ownerPassSet').bootstrapSwitch('state', data.owner_auth == 'yes'); |
|
|
|
$('#ownerPassSet').bootstrapSwitch('state', data.owner_auth); |
|
|
|
if (ev === 'join'){ |
|
|
|
if (ev === 'join'){ |
|
|
|
if (data.ask_for_name && data.ask_for_name === 'yes'){ |
|
|
|
if (data.ask_for_name){ |
|
|
|
$('#display-name-pre').slideDown(); |
|
|
|
$('#display-name-pre').slideDown(); |
|
|
|
} |
|
|
|
} |
|
|
|
else{ |
|
|
|
else{ |
|
|
|