Hide password inputs in the admin area

master
Daniel Berteaud 10 years ago
parent ee5d96debe
commit 0c86948739
  1. 3
      public/js/vroom.js

@ -517,6 +517,9 @@ function initAdmin(){
$('#joinPassSet').bootstrapSwitch('state', data.join_auth == 'yes');
$('#ownerPassSet').bootstrapSwitch('state', data.owner_auth == 'yes');
$('#persistentSet').bootstrapSwitch('state', data.persistent == 'yes');
// Hide the password inputs
$('#joinPassFields,#ownerPassFields').hide();
// And display the config modal dialog
$('#configureModal').modal('show');
}
});

Loading…
Cancel
Save