mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
Merge pull request #1946 from jbargu/jg_sci_3704
Fix Handsontable error when generation report
This commit is contained in:
commit
f44404a1f8
4 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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?) %>
|
||||
|
|
|
@ -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?) %>
|
||||
|
|
Loading…
Reference in a new issue