Add hints to local

This commit is contained in:
OVSharova 2021-10-11 16:04:00 +03:00
parent eecfd0a5ff
commit 4037e506be
6 changed files with 16 additions and 5 deletions

View file

@ -619,8 +619,10 @@ define([
if(this.options.showPwdOnClick) {
this._button.updateHint(this.textHintHidePwd);
}
else
this._btnElm.on('mouseup', _.bind(this.passwordHide,this));
else {
this._btnElm.on('mouseup', _.bind(this.passwordHide, this));
this._btnElm.on('mouseout', _.bind(this.passwordHide, this));
}
},
passwordHide: function (e) {
@ -636,8 +638,10 @@ define([
if(this.options.showPwdOnClick) {
this._button.updateHint(this.textHintShowPwd);
}
else
else {
this._btnElm.off('mouseup', this.passwordHide);
this._btnElm.off('mouseout', this.passwordHide);
}
},
textHintShowPwd: 'Show password',
textHintHidePwd: 'Hide password'

View file

@ -204,7 +204,7 @@ define([
el: $('#id-password-txt'),
type: 'password',
validateOnBlur: false,
showPwdOnClick: false,
showPwdOnClick: true,
validation : function(value) {
return me.txtIncorrectPwd;
}

View file

@ -168,6 +168,8 @@
"Common.UI.ExtendedColorDialog.textNew": "New",
"Common.UI.ExtendedColorDialog.textRGBErr": "The entered value is incorrect.<br>Please enter a numeric value between 0 and 255.",
"Common.UI.HSBColorPicker.textNoColor": "No Color",
"Common.UI.InputFieldBtnPassword.textHintHidePwd": "Hide password",
"Common.UI.InputFieldBtnPassword.textHintShowPwd": "Show password",
"Common.UI.SearchDialog.textHighlight": "Highlight results",
"Common.UI.SearchDialog.textMatchCase": "Case sensitive",
"Common.UI.SearchDialog.textReplaceDef": "Enter the replacement text",

View file

@ -61,6 +61,8 @@
"Common.UI.ExtendedColorDialog.textNew": "New",
"Common.UI.ExtendedColorDialog.textRGBErr": "The entered value is incorrect.<br>Please enter a numeric value between 0 and 255.",
"Common.UI.HSBColorPicker.textNoColor": "No Color",
"Common.UI.InputFieldBtnPassword.textHintHidePwd": "Hide password",
"Common.UI.InputFieldBtnPassword.textHintShowPwd": "Show password",
"Common.UI.SearchDialog.textHighlight": "Highlight results",
"Common.UI.SearchDialog.textMatchCase": "Case sensitive",
"Common.UI.SearchDialog.textReplaceDef": "Enter the replacement text",

View file

@ -131,7 +131,8 @@ define([
style : 'width: 100%;',
maxLength: 255,
validateOnBlur: false,
repeatInput: this.repeatPwd
repeatInput: this.repeatPwd,
showPwdOnClick: true
});
if (this.type == 'sheet') {

View file

@ -114,6 +114,8 @@
"Common.UI.ExtendedColorDialog.textNew": "New",
"Common.UI.ExtendedColorDialog.textRGBErr": "The entered value is incorrect.<br>Please enter a numeric value between 0 and 255.",
"Common.UI.HSBColorPicker.textNoColor": "No Color",
"Common.UI.InputFieldBtnPassword.textHintHidePwd": "Hide password",
"Common.UI.InputFieldBtnPassword.textHintShowPwd": "Show password",
"Common.UI.SearchDialog.textHighlight": "Highlight results",
"Common.UI.SearchDialog.textMatchCase": "Case sensitive",
"Common.UI.SearchDialog.textReplaceDef": "Enter the replacement text",