From eca13b968042fe7c21a5a01daaf1e1dffd3a83c6 Mon Sep 17 00:00:00 2001 From: Marius Burkard <m.burkard@pixcept.de> Date: Thu, 04 Feb 2016 12:09:39 -0500 Subject: [PATCH] Merge branch 'stable-3.1' --- interface/web/js/scrigo.js.php | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/interface/web/js/scrigo.js.php b/interface/web/js/scrigo.js.php index 7ba19d1..a30a9ec 100644 --- a/interface/web/js/scrigo.js.php +++ b/interface/web/js/scrigo.js.php @@ -204,6 +204,12 @@ var pword = password(<?php echo $min_password_length; ?>, false, 1); jQuery('#'+repeatPasswordFieldID).val(pword); newPWField.attr('id', passwordFieldID).val(pword).trigger('keyup').select(); + newPWField.unbind('keyup').on('keyup', function(e) { + if($(this).val() != pword) { + var pos = $(this).getCursorPosition(); + $(this).attr('type', 'password').unbind('keyup').setCursorPosition(pos); + } + }); } var funcDisableClick = function(e) { e.preventDefault(); return false; }; -- Gitblit v1.9.1