Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Aug 28, 2015
1 parent 9054e31 commit 5839a8e
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -69,9 +69,9 @@ private void initLayout(IModel<String> model) {
protected void onUpdate(AjaxRequestTarget target) {
boolean required = !StringUtils.isEmpty(password1.getModel().getObject());
password2.setRequired(required);

target.add(password2);
target.appendJavaScript("$(\"#"+ password2.getMarkupId() +"\").focus()");
//fix of MID-2463
// target.add(password2);
// target.appendJavaScript("$(\"#"+ password2.getMarkupId() +"\").focus()");
}
});
password2.add(new PasswordValidator(password1, password2));
Expand Down

0 comments on commit 5839a8e

Please sign in to comment.