1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-02 05:21:39 +02:00

Fix hiding password fields when opening the config modal

This commit is contained in:
Daniel Berteaud 2015-09-16 17:17:18 +02:00
parent f80463cfd7
commit a19f617006

View File

@ -426,6 +426,7 @@ function getRoomInfo(cb){
$('#askForNameSet').bootstrapSwitch('state', data.ask_for_name);
$('#joinPassSet').bootstrapSwitch('state', data.join_auth);
$('#ownerPassSet').bootstrapSwitch('state', data.owner_auth);
$('#joinPassFields,#ownerPassFields').hide();
// exec a callback if needed
if (typeof cb === 'function'){
cb();