From 2a189307eb0a6693a8d64b62e3845ca87c58d1eb Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Fri, 18 May 2012 08:34:18 -0400 Subject: [PATCH] - Added "Repeat Password" field to all forms where a password has to be set. --- interface/web/js/scrigo.js.php | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/interface/web/js/scrigo.js.php b/interface/web/js/scrigo.js.php index cc6a80f..7e01c7d 100644 --- a/interface/web/js/scrigo.js.php +++ b/interface/web/js/scrigo.js.php @@ -558,6 +558,23 @@ newPWField.attr('id', passwordFieldID).val(password(10, true)).trigger('keyup'); } +function checkPassMatch(pwField1,pwField2){ + var rpass = jQuery('#'+pwField2).val(); + var npass = jQuery('#'+pwField1).val(); + if(npass!= rpass) { + jQuery('#confirmpasswordOK').hide(); + jQuery('#confirmpasswordError').show(); + jQuery('button.positive').attr('disabled','disabled'); + jQuery('.tabbox_tabs ul li a').attr('onclick','return false;'); + return false; + } else { + jQuery('#confirmpasswordError').hide(); + jQuery('#confirmpasswordOK').show(); + jQuery('button.positive').removeAttr('disabled'); + jQuery('.tabbox_tabs ul li a').removeAttr('onclick'); + } +} + function getRandomInt(min, max){ return Math.floor(Math.random() * (max - min + 1)) + min; } -- Gitblit v1.9.1