Add hints to local
This commit is contained in:
parent
eecfd0a5ff
commit
4037e506be
|
@ -619,8 +619,10 @@ define([
|
||||||
if(this.options.showPwdOnClick) {
|
if(this.options.showPwdOnClick) {
|
||||||
this._button.updateHint(this.textHintHidePwd);
|
this._button.updateHint(this.textHintHidePwd);
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
this._btnElm.on('mouseup', _.bind(this.passwordHide, this));
|
this._btnElm.on('mouseup', _.bind(this.passwordHide, this));
|
||||||
|
this._btnElm.on('mouseout', _.bind(this.passwordHide, this));
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
passwordHide: function (e) {
|
passwordHide: function (e) {
|
||||||
|
@ -636,8 +638,10 @@ define([
|
||||||
if(this.options.showPwdOnClick) {
|
if(this.options.showPwdOnClick) {
|
||||||
this._button.updateHint(this.textHintShowPwd);
|
this._button.updateHint(this.textHintShowPwd);
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
this._btnElm.off('mouseup', this.passwordHide);
|
this._btnElm.off('mouseup', this.passwordHide);
|
||||||
|
this._btnElm.off('mouseout', this.passwordHide);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
textHintShowPwd: 'Show password',
|
textHintShowPwd: 'Show password',
|
||||||
textHintHidePwd: 'Hide password'
|
textHintHidePwd: 'Hide password'
|
||||||
|
|
|
@ -204,7 +204,7 @@ define([
|
||||||
el: $('#id-password-txt'),
|
el: $('#id-password-txt'),
|
||||||
type: 'password',
|
type: 'password',
|
||||||
validateOnBlur: false,
|
validateOnBlur: false,
|
||||||
showPwdOnClick: false,
|
showPwdOnClick: true,
|
||||||
validation : function(value) {
|
validation : function(value) {
|
||||||
return me.txtIncorrectPwd;
|
return me.txtIncorrectPwd;
|
||||||
}
|
}
|
||||||
|
|
|
@ -168,6 +168,8 @@
|
||||||
"Common.UI.ExtendedColorDialog.textNew": "New",
|
"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.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.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.textHighlight": "Highlight results",
|
||||||
"Common.UI.SearchDialog.textMatchCase": "Case sensitive",
|
"Common.UI.SearchDialog.textMatchCase": "Case sensitive",
|
||||||
"Common.UI.SearchDialog.textReplaceDef": "Enter the replacement text",
|
"Common.UI.SearchDialog.textReplaceDef": "Enter the replacement text",
|
||||||
|
|
|
@ -61,6 +61,8 @@
|
||||||
"Common.UI.ExtendedColorDialog.textNew": "New",
|
"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.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.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.textHighlight": "Highlight results",
|
||||||
"Common.UI.SearchDialog.textMatchCase": "Case sensitive",
|
"Common.UI.SearchDialog.textMatchCase": "Case sensitive",
|
||||||
"Common.UI.SearchDialog.textReplaceDef": "Enter the replacement text",
|
"Common.UI.SearchDialog.textReplaceDef": "Enter the replacement text",
|
||||||
|
|
|
@ -131,7 +131,8 @@ define([
|
||||||
style : 'width: 100%;',
|
style : 'width: 100%;',
|
||||||
maxLength: 255,
|
maxLength: 255,
|
||||||
validateOnBlur: false,
|
validateOnBlur: false,
|
||||||
repeatInput: this.repeatPwd
|
repeatInput: this.repeatPwd,
|
||||||
|
showPwdOnClick: true
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.type == 'sheet') {
|
if (this.type == 'sheet') {
|
||||||
|
|
|
@ -114,6 +114,8 @@
|
||||||
"Common.UI.ExtendedColorDialog.textNew": "New",
|
"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.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.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.textHighlight": "Highlight results",
|
||||||
"Common.UI.SearchDialog.textMatchCase": "Case sensitive",
|
"Common.UI.SearchDialog.textMatchCase": "Case sensitive",
|
||||||
"Common.UI.SearchDialog.textReplaceDef": "Enter the replacement text",
|
"Common.UI.SearchDialog.textReplaceDef": "Enter the replacement text",
|
||||||
|
|
Loading…
Reference in a new issue