Convert HOT table after it was initialized

Closes SCI-3704
This commit is contained in:
Jure Grabnar 2019-07-23 14:17:22 +02:00
parent daccad1346
commit 5847a8b05c
4 changed files with 1 additions and 3 deletions

View file

@ -139,6 +139,7 @@ function initializeReportElements(parentElement) {
// Initialize handsontable containers
_.each(parentElement.findWithSelf(".hot-table-container"), function(el) {
initializeHandsonTable($(el));
reportHandsonTableConverter();
});
// Add event listeners element to controls

View file

@ -31,7 +31,6 @@
<input type="hidden" class="hot-table-contents hot-samples" value='<%= rows_json.to_json.force_encoding(Encoding::UTF_8) %>' />
<div class="hot-table-container"></div>
<table class="report-common-table-format"></table>
<script>reportHandsonTableConverter()</script>
<% else %>
<div class="row">
<div class="col-xs-12">

View file

@ -37,7 +37,6 @@
<input type="hidden" class="hot-table-contents" value="<%= table.contents_utf_8 %>" />
<div class="hot-table-container"></div>
<table class="report-common-table-format"></table>
<script>reportHandsonTableConverter()</script>
</div>
<div class="report-element-children">
<%= children if (defined? children and children.present?) %>

View file

@ -32,7 +32,6 @@
<input type="hidden" class="hot-table-contents" value="<%= table.contents_utf_8 %>" />
<div class="hot-table-container"></div>
<table class="report-common-table-format"></table>
<script>reportHandsonTableConverter()</script>
</div>
<div class="report-element-children">
<%= children if (defined? children and children.present?) %>