diff --git a/apps/common/main/lib/view/OpenDialog.js b/apps/common/main/lib/view/OpenDialog.js index ad039555aa..1e2f7fa3f2 100644 --- a/apps/common/main/lib/view/OpenDialog.js +++ b/apps/common/main/lib/view/OpenDialog.js @@ -207,6 +207,7 @@ define([ type: 'password', showCls: (this.options.iconType==='svg' ? 'svg-icon' : 'toolbar__icon') + ' btn-sheet-view', hideCls: (this.options.iconType==='svg' ? 'svg-icon' : 'toolbar__icon') + ' hide-password', + maxLength: this.options.maxPasswordLength, validateOnBlur: false, showPwdOnClick: true, validation : function(value) { diff --git a/apps/documenteditor/main/app/controller/DocProtection.js b/apps/documenteditor/main/app/controller/DocProtection.js index 1910542ab0..3174987a19 100644 --- a/apps/documenteditor/main/app/controller/DocProtection.js +++ b/apps/documenteditor/main/app/controller/DocProtection.js @@ -147,6 +147,7 @@ define([ type: Common.Utils.importTextType.DRM, txtOpenFile: me.view.txtWBUnlockDescription, validatePwd: false, + maxPasswordLength: 15, handler: function (result, value) { btn = result; if (result == 'ok') { diff --git a/apps/documenteditor/main/app/view/ProtectDialog.js b/apps/documenteditor/main/app/view/ProtectDialog.js index 75376afe06..8c41dccea3 100644 --- a/apps/documenteditor/main/app/view/ProtectDialog.js +++ b/apps/documenteditor/main/app/view/ProtectDialog.js @@ -99,7 +99,7 @@ define([ type: 'password', allowBlank : true, style : 'width: 100%;', - maxLength: 255, + maxLength: 15, validateOnBlur: false, validation : function(value) { return me.txtIncorrectPwd; @@ -111,7 +111,7 @@ define([ type: 'password', allowBlank : true, style : 'width: 100%;', - maxLength: 255, + maxLength: 15, validateOnBlur: false, repeatInput: this.repeatPwd, showPwdOnClick: true