Merge pull request #2571 from ONLYOFFICE/fix/bug-63840

Fix/bug 63840
This commit is contained in:
Julia Radzhabova
2023-09-06 20:28:32 +03:00
committed by GitHub
8 changed files with 11 additions and 6 deletions

View File

@ -568,7 +568,7 @@ define([
initialize : function(options) {
options = options || {};
options.btnHint = options.btnHint || this.textHintShowPwd;
options.btnHint = options.btnHint || (options.showPwdOnClick ? this.textHintShowPwd : this.textHintHold);
options.iconCls = options.showCls || this.options.showCls;
Common.UI.InputFieldBtn.prototype.initialize.call(this, options);
@ -656,7 +656,8 @@ define([
}
},
textHintShowPwd: 'Show password',
textHintHidePwd: 'Hide password'
textHintHidePwd: 'Hide password',
textHintHold: 'Press and hold to show password'
}
})(), Common.UI.InputFieldBtnPassword || {}));

View File

@ -208,7 +208,7 @@ define([
hideCls: (this.options.iconType==='svg' ? 'svg-icon hide-password' : 'toolbar__icon btn-hide-password'),
maxLength: this.options.maxPasswordLength,
validateOnBlur: false,
showPwdOnClick: true,
showPwdOnClick: false,
validation : function(value) {
return me.txtIncorrectPwd;
}

View File

@ -111,7 +111,8 @@ define([
style : 'width: 100%;',
maxLength: 255,
validateOnBlur: false,
repeatInput: this.repeatPwd
repeatInput: this.repeatPwd,
showPwdOnClick: false
});
}
},

View File

@ -113,7 +113,7 @@ define([
maxLength: 15,
validateOnBlur: false,
repeatInput: this.repeatPwd,
showPwdOnClick: true,
showPwdOnClick: false,
validation : function(value) {
return (value.length>15) ? me.txtLimit : true;
}

View File

@ -343,6 +343,7 @@
"Common.UI.InputFieldBtnCalendar.textDate": "Select date",
"Common.UI.InputFieldBtnPassword.textHintHidePwd": "Hide password",
"Common.UI.InputFieldBtnPassword.textHintShowPwd": "Show password",
"Common.UI.InputFieldBtnPassword.textHintHold": "Press and hold to show password",
"Common.UI.SearchBar.textFind": "Find",
"Common.UI.SearchBar.tipCloseSearch": "Close search",
"Common.UI.SearchBar.tipNextResult": "Next result",

View File

@ -434,6 +434,7 @@
"Common.UI.HSBColorPicker.textNoColor": "No Color",
"Common.UI.InputFieldBtnPassword.textHintHidePwd": "Hide password",
"Common.UI.InputFieldBtnPassword.textHintShowPwd": "Show password",
"Common.UI.InputFieldBtnPassword.textHintHold": "Press and hold to show password",
"Common.UI.SearchBar.textFind": "Find",
"Common.UI.SearchBar.tipCloseSearch": "Close search",
"Common.UI.SearchBar.tipNextResult": "Next result",

View File

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

View File

@ -284,6 +284,7 @@
"Common.UI.HSBColorPicker.textNoColor": "No Color",
"Common.UI.InputFieldBtnPassword.textHintHidePwd": "Hide password",
"Common.UI.InputFieldBtnPassword.textHintShowPwd": "Show password",
"Common.UI.InputFieldBtnPassword.textHintHold": "Press and hold to show password",
"Common.UI.SearchBar.textFind": "Find",
"Common.UI.SearchBar.tipCloseSearch": "Close search",
"Common.UI.SearchBar.tipNextResult": "Next result",