diff --git a/var/www/templates/terms_management.html b/var/www/templates/terms_management.html index 3093837f..32a51c32 100644 --- a/var/www/templates/terms_management.html +++ b/var/www/templates/terms_management.html @@ -233,15 +233,15 @@ $.getJSON(url, function (data) { if (data.length != 0) { var html_to_add = ""; - html_to_add += "
Source | "; html_to_add += "Date | "; html_to_add += "Encoding | "; html_to_add += "Size (Kb) | "; - html_to_add += "Mime | "; - html_to_add += "(# lines, Max line length) | "; + html_to_add += "# lines | "; + html_to_add += "Max length | "; html_to_add += "Preview | "; html_to_add += ""+curr_data.date+" | "; html_to_add += ""+curr_data.encoding+" | "; html_to_add += ""+curr_data.size+" | "; - html_to_add += ""+curr_data.mime+" | "; - html_to_add += "("+curr_data.lineinfo[0]+", "+curr_data.lineinfo[1]+") | "; + html_to_add += ""+curr_data.lineinfo[0]+" | "; + html_to_add += ""+curr_data.lineinfo[1]+" | "; html_to_add += ""; html_to_add += ""; @@ -264,6 +264,7 @@ $("#mymodalbody").html(html_to_add); $("[data-toggle=popover]").popover(); $("#button_show_plot").attr("href", "{{ url_for('terms_plot_tool')}}"+"?term="+the_modal.attr('data-term') ); + $('#modal-table').DataTable(); } else { $("#mymodalbody").html("No paste containing this term has been received yet."); $("#button_show_plot").attr("href", "{{ url_for('terms_plot_tool')}}"+"?term="+the_modal.attr('data-term') ); |
---|