#7679 [WebUI] all validation items are rendered on each key typing at login form
Closed: fixed Opened by slev.

For now all validation items are rendered on each keypress event at login form.

check_caps_lock: function(e) {                                                  
    var s = String.fromCharCode(e.keyCode || e.which);                          
    if ((s.toUpperCase() === s && s.toLowerCase() !== s && !e.shiftKey)||       
      (s.toUpperCase() !== s && s.toLowerCase() === s && e.shiftKey)) {         
        this.display_caps_warning(true);                                        
    } else if ((s.toLowerCase() === s && s.toUpperCase() !== s && !e.shiftKey)||
      (s.toLowerCase() !== s && s.toUpperCase() === s && e.shiftKey)) {         
        this.display_caps_warning(false);                                       
    }                                                                           
    // in other cases it's most likely non alpha numeric character                 
},

Mostly It is overhead.


Metadata Update from @abiagion:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/2270

Metadata Update from @abbra:
- Issue assigned to abbra

Metadata Update from @abbra:
- Issue assigned to slev (was: abbra)

Metadata Update from @abbra:
- Issue set to the milestone: FreeIPA 4.7.1

master:

  • 1857dc9db02d0a1d06e18993ad478c1557479d89 Fix render validation items on keypress event at login form

ipa-4-7:

  • 5b1dce59ee99a359faa5020a0ff58734c1b0d28b Fix render validation items on keypress event at login form

Metadata Update from @stsymbal:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata