From 0c869487391fecb972be45c20bbaced1688fb933 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 11 Feb 2015 19:09:09 +0100 Subject: [PATCH] Hide password inputs in the admin area --- public/js/vroom.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/js/vroom.js b/public/js/vroom.js index a8ec161..5d5869b 100644 --- a/public/js/vroom.js +++ b/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'); } });