mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +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');
|
header('Content-Type: application/javascript; charset=UTF-8');
|
||||||
parent::jsTranslations(array('js_form_error', 'js_form_errors'));
|
parent::jsTranslations(array('js_form_error', 'js_form_errors'));
|
||||||
?>
|
?>
|
||||||
document.form1.newpassword.focus();
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
$('#newpassword').focus();
|
||||||
$("#form1").validate({
|
$("#form1").validate({
|
||||||
rules: {
|
rules: {
|
||||||
newpasswordrepeat: {
|
newpasswordrepeat: {
|
||||||
|
@ -78,7 +78,16 @@ $(document).ready(function() {
|
||||||
$this->contentContainerStart();
|
$this->contentContainerStart();
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("password"),
|
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) {
|
if($passwordstrength > 0) {
|
||||||
$this->formField(
|
$this->formField(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user