Hide password fields after config update

master
Daniel Berteaud 10 years ago
parent 3c74404321
commit d101b98648
  1. 2
      public/js/vroom.js

@ -1751,6 +1751,8 @@ function initVroom(room) {
$('#ownerPass,#ownerPassConfirm,#joinPass,#joinPassConfirm').val(''); $('#ownerPass,#ownerPassConfirm,#joinPass,#joinPassConfirm').val('');
if (data.status == 'success'){ if (data.status == 'success'){
$('#configureModal').modal('hide'); $('#configureModal').modal('hide');
// Hide passwords inputs too
$('#joinPassFields,#ownerPassFields').hide();
$.notify(data.msg, 'info'); $.notify(data.msg, 'info');
webrtc.sendToAll('room_conf_updated'); webrtc.sendToAll('room_conf_updated');
} }

Loading…
Cancel
Save