[DE] Add required option for all forms

This commit is contained in:
Julia Radzhabova 2021-05-21 15:41:00 +03:00
parent 281bf0a55a
commit 790685b93c
2 changed files with 7 additions and 4 deletions

View file

@ -94,8 +94,13 @@
</tr>
</table>
<table cols="1">
<tr class="required">
<td class="padding-large">
<tr>
<td class="padding-small">
<div class="separator horizontal"></div>
</td>
</tr>
<tr>
<td class="padding-small">
<div id="form-chb-required"></div>
</td>
</tr>

View file

@ -98,7 +98,6 @@ define([
this.ListOnlySettings = el.find('.form-list');
this.ImageOnlySettings = el.find('.form-image');
this.ConnectedSettings = el.find('.form-connected');
this.RequiredSettings = el.find('.required');
},
createDelayedElements: function() {
@ -918,7 +917,6 @@ define([
var value = (checkboxOnly || radioboxOnly);
this.PlaceholderSettings.toggleClass('hidden', value);
this.CheckOnlySettings.toggleClass('hidden', !value);
this.RequiredSettings.toggleClass('hidden', imageOnly || listOnly && (type == Asc.c_oAscContentControlSpecificType.DropDownList));
},
onSelectItem: function(listView, itemView, record) {