Merge pull request #1946 from jbargu/jg_sci_3704

Fix Handsontable error when generation report
This commit is contained in:
Jure Grabnar 2019-07-25 11:28:46 +02:00 committed by GitHub
commit f44404a1f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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?) %>