1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-28 17:53:42 +02:00

Empty password fields on modal dismiss

This commit is contained in:
Daniel Berteaud 2014-06-18 11:15:27 +02:00
parent 4fb6de7a1d
commit 3e8b0bb819

View File

@ -2025,6 +2025,11 @@ function initVroom(room) {
}
});
// Empty password fields on modal dismiss
$('#joinPassModal,#persistentModal').on('hide.bs.modal',function(){
$(this).find(':input').val('');
});
// Remove the active class on the help button
$('#helpModal').on('hide.bs.modal',function(){
$('#helpButton').removeClass('active');