mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
replace plain html in formField() method
This commit is contained in:
parent
41721467ac
commit
06e9f41ec1
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user