mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-07 16:09:57 +08:00
Trying to fix this messy table preview
This commit is contained in:
parent
de9a3a1d0d
commit
6fc1afe4c1
3 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,7 @@
|
||||||
formulas: true,
|
formulas: true,
|
||||||
readOnly: true
|
readOnly: true
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<% table_count += 1 %>
|
<% table_count += 1 %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<% whitelist_simple=['1','6','17'] %>
|
<% whitelist_simple=['1','6','17'] %>
|
||||||
<% whitelist_complex=['8','9','15','18','19','20']%>
|
<% whitelist_complex=['8','9','15','18','19','20']%>
|
||||||
|
<% step_table_elements_array = [] %>
|
||||||
<% json_object['steps'].each_with_index do |step,counter_orig| %>
|
<% json_object['steps'].each_with_index do |step,counter_orig| %>
|
||||||
<% counter = counter_orig + 2 %>
|
<% counter = counter_orig + 2 %>
|
||||||
<div style="display: block;">
|
<div style="display: block;">
|
||||||
|
@ -113,6 +114,7 @@
|
||||||
<% tables.each do |index, table| %>
|
<% tables.each do |index, table| %>
|
||||||
<% table_hash = JSON.parse((Base64.decode64(table['contents']))) %>
|
<% table_hash = JSON.parse((Base64.decode64(table['contents']))) %>
|
||||||
<% pio_table_id = "pio_table_step_"+counter.to_s+"_info_"+table_count.to_s %>
|
<% pio_table_id = "pio_table_step_"+counter.to_s+"_info_"+table_count.to_s %>
|
||||||
|
<% step_table_elements_array.push([pio_table_id,table_hash]) %>
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<div data-role="hot-table" class="hot-table">
|
<div data-role="hot-table" class="hot-table">
|
||||||
<div id="<%=pio_table_id%>" ></div>
|
<div id="<%=pio_table_id%>" ></div>
|
||||||
|
|
|
@ -14,4 +14,5 @@ alert('<%= I18n.t('my_modules.protocols.load_from_file_size_error',
|
||||||
);
|
);
|
||||||
<% end %>
|
<% end %>
|
||||||
$('#modal-import-json-protocol-preview').modal('show');
|
$('#modal-import-json-protocol-preview').modal('show');
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue