rem: $(document).ready(function () { $('div.user-admin-picture-radios input[@type=radio]').click(function () { $('div.user-admin-picture-settings')[['hide', 'show'][this.value]](); }); 
add: $("input.password-field", context).each(function() { var passwordInput = $(this); var parent = $(this).parent();  var monitorDelay = 700;   $(this).after('<span class="password-strength"><span class="password-title">'+ translate.strengthTitle +'</span> <span class="password-result"></span></span>').parent(); var passwordStrength = $("span.password-strength", parent); var passwordResult = $("span.password-result", passwordStrength); parent.addClass("password-parent");   var outerItem  = $(this).parent().parent(); $("input.password-confirm", outerItem).after('<span class="password-confirm">'+ translate["confirmTitle"] +' <span></span></span>').parent().addClass("confirm-parent"); var confirmInput = $("input.password-confirm", outerItem); var confirmResult = $("span.password-confirm", outerItem); var confirmChild = $("span", confirmResult);   $(confirmInput).parent().after('<div class="password-description"></div>'); var passwordDescription = $("div.password-description", $(this).parent().parent()).hide();   var passwordCheck = function () {  if (this.timer) { clearTimeout(this.timer); }   if (!passwordInput.val()) { passwordStrength.css({ visibility: "hidden" }); passwordDescription.hide(); return; }    var result = Drupal.evaluatePasswordStrength(passwordInput.val()); passwordResult.html(result.strength == "" ? "" : translate[result.strength +"Strength"]);   var classMap = { low: "error", medium: "warning", high: "ok" }; var newClass = classMap[result.strength] || "";   if (this.passwordClass) { passwordResult.removeClass(this.passwordClass); passwordDescription.removeClass(this.passwordClass); } passwordDescription.html(result.message); passwordResult.addClass(newClass); if (result.strength == "high") { passwordDescription.hide(); } else { passwordDescription.addClass(newClass); } this.passwordClass = newClass;     confirmResult.css({ visibility: (confirmInput.val() == "" ? "hidden" : "visible") });  var success = passwordInput.val() == confirmInput.val();   if (this.confirmClass) { confirmChild.removeClass(this.confirmClass); }   var confirmClass = success ? "ok" : "error"; confirmChild.html(translate["confirm"+ (success ? "Success" : "Failure")]).addClass(confirmClass); this.confirmClass = confirmClass;   passwordStrength.css({ visibility: "visible" }); passwordDescription.show(); };   var passwordDelayedCheck = function() {  if (this.timer) { clearTimeout(this.timer); }   if (!passwordInput.val()) { passwordStrength.css({ visibility: "hidden" }); passwordDescription.hide(); return; }   this.timer = setTimeout(passwordCheck, monitorDelay); };   passwordInput.keyup(passwordDelayedCheck).blur(passwordCheck); confirmInput.keyup(passwordDelayedCheck).blur(passwordCheck); 
context:   $(document).ready(function () {    $('div.user-admin-picture-radios input[@type=radio]').click(function () {      $('div.user-admin-picture-settings')[['hide', 'show'][this.value]]();    });  });
meta: 6801	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6801/9e0da3dc7c39786bf6d972e07819fe2880cdeaa3/user.js/clean/modules/user/user.js