Skip to content

Commit

Permalink
XWIKI-22121: Improve the registration experience (#3627)
Browse files Browse the repository at this point in the history
* Improved maintanibility reported by SonarCloud
* Fixed a typo in Registration.xml
  • Loading branch information
Sereza7 authored Nov 7, 2024
1 parent 35425fd commit d7541b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
## Also, not filled back in if there is an error ('noReturn').
#set($field =
{'name' : 'captcha_placeholder',
'label' : $services.localization.render('core.captcha.label')
'label' : $services.localization.render('core.captcha.label'),
'skipLabelFor' : true,
'type' : 'html',
'html' : "<span class='xHint'>$escapetool.xml($services.localization.render('core.captcha.instruction'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ LiveValidation.prototype = {
* Empties out the message elements if they exist
*/
removeMessage: function(){
for (let i = 0; i < this.validations.length; i++) {
let messageHolder = this.validations[i].messageHolder;
for (let validation of validations) {
let messageHolder = validation.messageHolder;
this.removeMessageClass(messageHolder);
messageHolder.lastChild.textContent = '';
}
Expand Down

0 comments on commit d7541b6

Please sign in to comment.