diff --git a/apps/common/main/lib/view/TextInputDialog.js b/apps/common/main/lib/view/TextInputDialog.js index bbd4b5cb60..2698e41809 100644 --- a/apps/common/main/lib/view/TextInputDialog.js +++ b/apps/common/main/lib/view/TextInputDialog.js @@ -82,6 +82,7 @@ define([], function () { 'use strict'; el : $('#id-dlg-label-custom-input'), allowBlank : me.inputConfig.allowBlank, blankError : me.inputConfig.blankError, + maxLength : me.inputConfig.maxLength, style : 'width: 100%;', validateOnBlur: false, validation : me.inputConfig.validation @@ -89,6 +90,7 @@ define([], function () { 'use strict'; el : $('#id-dlg-label-custom-input'), allowBlank : me.inputConfig.allowBlank, blankError : me.inputConfig.blankError, + maxLength : me.inputFixedConfig.fixedValue && me.inputConfig.maxLength ? me.inputConfig.maxLength - me.inputFixedConfig.fixedValue.length : me.inputConfig.maxLength, style : 'width: 100%;', validateOnBlur: false, validation : me.inputConfig.validation, diff --git a/apps/documenteditor/main/app/controller/LeftMenu.js b/apps/documenteditor/main/app/controller/LeftMenu.js index 03b6460882..e9bdf9c453 100644 --- a/apps/documenteditor/main/app/controller/LeftMenu.js +++ b/apps/documenteditor/main/app/controller/LeftMenu.js @@ -455,6 +455,9 @@ define([ label: me.textSelectPath, value: defFileName || '', inputFixedConfig: {fixedValue: ext, fixedWidth: 40}, + inputConfig: { + maxLength: me.mode.wopi.FileNameMaxLength + }, handler: function(result, value) { if (result == 'ok') { if (typeof ext === 'string') diff --git a/apps/pdfeditor/main/app/controller/LeftMenu.js b/apps/pdfeditor/main/app/controller/LeftMenu.js index 69dfc8d6d5..cd05c18e6b 100644 --- a/apps/pdfeditor/main/app/controller/LeftMenu.js +++ b/apps/pdfeditor/main/app/controller/LeftMenu.js @@ -369,6 +369,9 @@ define([ label: me.textSelectPath, value: defFileName || '', inputFixedConfig: {fixedValue: ext, fixedWidth: 40}, + inputConfig: { + maxLength: me.mode.wopi.FileNameMaxLength + }, handler: function(result, value) { if (result == 'ok') { if (typeof ext === 'string') diff --git a/apps/presentationeditor/main/app/controller/LeftMenu.js b/apps/presentationeditor/main/app/controller/LeftMenu.js index bc84a7181b..d295692f4d 100644 --- a/apps/presentationeditor/main/app/controller/LeftMenu.js +++ b/apps/presentationeditor/main/app/controller/LeftMenu.js @@ -312,6 +312,9 @@ define([ label: me.textSelectPath, value: defFileName || '', inputFixedConfig: {fixedValue: ext, fixedWidth: 40}, + inputConfig: { + maxLength: me.mode.wopi.FileNameMaxLength + }, handler: function(result, value) { if (result == 'ok') { if (typeof ext === 'string') diff --git a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js index e51dad40d0..9ea135e09f 100644 --- a/apps/spreadsheeteditor/main/app/controller/LeftMenu.js +++ b/apps/spreadsheeteditor/main/app/controller/LeftMenu.js @@ -434,6 +434,9 @@ define([ label: me.textSelectPath, value: defFileName || '', inputFixedConfig: {fixedValue: ext, fixedWidth: 40}, + inputConfig: { + maxLength: me.mode.wopi.FileNameMaxLength + }, handler: function(result, value) { if (result == 'ok') { if (typeof ext === 'string')