Skip to content

Commit

Permalink
Merge pull request 'For bug 62643' (#29) from fix/bugfix into release…
Browse files Browse the repository at this point in the history
…/v8.2.0
  • Loading branch information
Julia Radzhabova committed Sep 17, 2024
2 parents bd20461 + f86804b commit 61fdb33
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/common/main/lib/view/TextInputDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,15 @@ 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
}) : new Common.UI.InputFieldFixed({
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,
Expand Down
3 changes: 3 additions & 0 deletions apps/documenteditor/main/app/controller/LeftMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
3 changes: 3 additions & 0 deletions apps/pdfeditor/main/app/controller/LeftMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
3 changes: 3 additions & 0 deletions apps/presentationeditor/main/app/controller/LeftMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
3 changes: 3 additions & 0 deletions apps/spreadsheeteditor/main/app/controller/LeftMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 61fdb33

Please sign in to comment.