From ede71d86e319419b8ac8dd8f8b3dbcc59bd02449 Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Fri, 26 Feb 2010 12:50:30 +0100 Subject: [PATCH] Initialise password fields when loading the page (to prevent the browser to preemptively fill them with data) --- lib/functions.js | 12 ++++++++++++ lib/mask.php | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/lib/functions.js b/lib/functions.js index 72141c2..8554e2b 100644 --- a/lib/functions.js +++ b/lib/functions.js @@ -72,6 +72,18 @@ function set_value(id, value) /* * Form functions */ +function form_init() +{ + var form = document.getElementById('form_edit'); + + if (!form) return; + + for (var i=0; i