From 3e8b0bb81910ba85ff8658dee88a4707b33db2cb Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 18 Jun 2014 11:15:27 +0200 Subject: [PATCH] Empty password fields on modal dismiss --- public/js/vroom.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/js/vroom.js b/public/js/vroom.js index 5832972..a2a3317 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -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');