Fix empty checklist and dropdown column creation

This commit is contained in:
Urban Rotnik 2020-01-13 15:48:55 +01:00
parent accd1d9e16
commit 0a3359e815
2 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@
selected_delimiter_char = Constants::REPOSITORY_LIST_ITEMS_DELIMITERS_MAP[selected_delimiter.to_sym]
%>
<%= hidden_field_tag 'dropdown-options', '', class: 'dropdown-options' %>
<%= hidden_field_tag 'dropdown-options', '[]', class: 'dropdown-options' %>
<div class="form-group">
<label class="control-label col-sm-3" for="repository-column-data-type">
<%= t('libraries.manange_modal_column.list_type.delimiter_label') %>
@ -32,7 +32,7 @@
>
</select>
<div class="limit-counter-container">
<span class="items-count"></span>
<span class="items-count" data-count="0">0</span>
<span class="items-limit">/<%= Constants::REPOSITORY_CHECKLIST_ITEMS_PER_COLUMN %> </span>
<span class="items-label"></span></div>
</div>

View file

@ -4,7 +4,7 @@
selected_delimiter_char = Constants::REPOSITORY_LIST_ITEMS_DELIMITERS_MAP[selected_delimiter.to_sym]
%>
<%= hidden_field_tag 'dropdown-options', '', class: 'dropdown-options' %>
<%= hidden_field_tag 'dropdown-options', '[]', class: 'dropdown-options' %>
<div class="form-group">
<label class="control-label col-sm-3" for="repository-column-data-type">
<%= t('libraries.manange_modal_column.list_type.delimiter_label') %>
@ -28,7 +28,7 @@
<select class="form-control preview-select">
</select>
<div class="limit-counter-container">
<span class="items-count"></span>
<span class="items-count" data-count="0">0</span>
<span class="items-limit">/<%= Constants::REPOSITORY_LIST_ITEMS_PER_COLUMN %> </span>
<span class="items-label"></span></div>
</div>