mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix render validation items on keypress event at login form
There are many no needed render callings which are performed on each keypress event at login form. It is enough to update validation items on "CapsLock" state change. Fixes: https://pagure.io/freeipa/issue/7679 Reviewed-By: Serhii Tsymbaliuk <stsymbal@redhat.com>
This commit is contained in:
parent
cf1301fb06
commit
1857dc9db0
@ -285,13 +285,17 @@ define(['dojo/_base/declare',
|
||||
*/
|
||||
display_caps_warning: function(display) {
|
||||
|
||||
this.caps_warning = display;
|
||||
var val_summary = this.get_widget('validation');
|
||||
if (display) {
|
||||
if (!this.caps_warning) {
|
||||
val_summary.add_warning('caps', this.caps_warning_msg);
|
||||
}
|
||||
} else {
|
||||
if (this.caps_warning) {
|
||||
val_summary.remove('caps');
|
||||
}
|
||||
}
|
||||
this.caps_warning = display;
|
||||
},
|
||||
|
||||
bind_validation: function(summary, field) {
|
||||
|
Loading…
Reference in New Issue
Block a user