[DE] Set max length of password for document protection
This commit is contained in:
parent
b17377a916
commit
5c0b841223
|
@ -207,6 +207,7 @@ define([
|
||||||
type: 'password',
|
type: 'password',
|
||||||
showCls: (this.options.iconType==='svg' ? 'svg-icon' : 'toolbar__icon') + ' btn-sheet-view',
|
showCls: (this.options.iconType==='svg' ? 'svg-icon' : 'toolbar__icon') + ' btn-sheet-view',
|
||||||
hideCls: (this.options.iconType==='svg' ? 'svg-icon' : 'toolbar__icon') + ' hide-password',
|
hideCls: (this.options.iconType==='svg' ? 'svg-icon' : 'toolbar__icon') + ' hide-password',
|
||||||
|
maxLength: this.options.maxPasswordLength,
|
||||||
validateOnBlur: false,
|
validateOnBlur: false,
|
||||||
showPwdOnClick: true,
|
showPwdOnClick: true,
|
||||||
validation : function(value) {
|
validation : function(value) {
|
||||||
|
|
|
@ -147,6 +147,7 @@ define([
|
||||||
type: Common.Utils.importTextType.DRM,
|
type: Common.Utils.importTextType.DRM,
|
||||||
txtOpenFile: me.view.txtWBUnlockDescription,
|
txtOpenFile: me.view.txtWBUnlockDescription,
|
||||||
validatePwd: false,
|
validatePwd: false,
|
||||||
|
maxPasswordLength: 15,
|
||||||
handler: function (result, value) {
|
handler: function (result, value) {
|
||||||
btn = result;
|
btn = result;
|
||||||
if (result == 'ok') {
|
if (result == 'ok') {
|
||||||
|
|
|
@ -99,7 +99,7 @@ define([
|
||||||
type: 'password',
|
type: 'password',
|
||||||
allowBlank : true,
|
allowBlank : true,
|
||||||
style : 'width: 100%;',
|
style : 'width: 100%;',
|
||||||
maxLength: 255,
|
maxLength: 15,
|
||||||
validateOnBlur: false,
|
validateOnBlur: false,
|
||||||
validation : function(value) {
|
validation : function(value) {
|
||||||
return me.txtIncorrectPwd;
|
return me.txtIncorrectPwd;
|
||||||
|
@ -111,7 +111,7 @@ define([
|
||||||
type: 'password',
|
type: 'password',
|
||||||
allowBlank : true,
|
allowBlank : true,
|
||||||
style : 'width: 100%;',
|
style : 'width: 100%;',
|
||||||
maxLength: 255,
|
maxLength: 15,
|
||||||
validateOnBlur: false,
|
validateOnBlur: false,
|
||||||
repeatInput: this.repeatPwd,
|
repeatInput: this.repeatPwd,
|
||||||
showPwdOnClick: true
|
showPwdOnClick: true
|
||||||
|
|
Loading…
Reference in a new issue