[DE] Forms: hide mask/regexp settings for some fields

This commit is contained in:
Julia Radzhabova 2022-08-30 13:39:42 +03:00
parent 188898e1a7
commit e0cc0d96e0
2 changed files with 3 additions and 1 deletions

View file

@ -51,7 +51,7 @@
<div id="form-combo-format" style="width: 100%;"></div>
</td>
</tr>
<tr class="form-textfield">
<tr class="form-textfield-mask">
<td class="padding-small">
<div id="form-txt-mask"></div>
</td>

View file

@ -96,6 +96,7 @@ define([
}));
this.TextOnlySettings = el.find('.form-textfield');
this.TextOnlySettingsMask = el.find('.form-textfield-mask');
this.PlaceholderSettings = el.find('.form-placeholder');
this.KeySettings = el.find('.form-keyfield');
this.KeySettingsTd = this.KeySettings.find('td');
@ -1318,6 +1319,7 @@ define([
this.KeySettingsTd.toggleClass('padding-small', !connected);
this.ConnectedSettings.toggleClass('hidden', !connected);
this.TextOnlySettingsMask.toggleClass('hidden', !(type === Asc.c_oAscContentControlSpecificType.None && !!formTextPr) || !(this._state.FormatType===Asc.TextFormFormatType.Mask || this._state.FormatType===Asc.TextFormFormatType.RegExp));
if (this.type !== type || type == Asc.c_oAscContentControlSpecificType.CheckBox)
this.showHideControls(type, formTextPr, specProps);
this.type = type;