replace plain html in formField() method

This commit is contained in:
Uwe Steinmann 2022-12-20 15:55:37 +01:00
parent 41721467ac
commit 06e9f41ec1

View File

@ -35,8 +35,8 @@ class SeedDMS_View_ChangePassword extends SeedDMS_Theme_Style {
header('Content-Type: application/javascript; charset=UTF-8');
parent::jsTranslations(array('js_form_error', 'js_form_errors'));
?>
document.form1.newpassword.focus();
$(document).ready(function() {
$('#newpassword').focus();
$("#form1").validate({
rules: {
newpasswordrepeat: {
@ -78,7 +78,16 @@ $(document).ready(function() {
$this->contentContainerStart();
$this->formField(
getMLText("password"),
'<input class="pwd form-control" type="password" rel="strengthbar" name="newpassword" id="newpassword" required="required">'
array(
'element'=>'input',
'type'=>'password',
'id'=>'newpassword',
'name'=>'newpassword',
'autocomplete'=>'off',
'required'=>true,
'class'=>'pwd',
'attributes'=>[['rel', 'strengthbar']]
)
);
if($passwordstrength > 0) {
$this->formField(