Add double click to show file

This commit is contained in:
2023-05-29 23:07:10 +02:00
parent 1b362f2110
commit 10c352fdb5
2 changed files with 26 additions and 21 deletions

View File

@@ -23,6 +23,10 @@ $(document).ready(function () {
$(this).addClass('{{ selected }}');
}
});
// Show file with doubleclick
$('#file-table tbody').on('dblclick', 'tr', function () {
showFile($(this).attr("id"));
});
$(document).ajaxStart(function(){
$("body").addClass('ajaxLoading');
});

View File

@@ -13,9 +13,10 @@
</tr>
</thead>
<tbody>
{% for file, data in files.items() %} {% set parts = file.split('_') %} {%
set stratified = parts[6].split('.')[0] %}
<tr>
{% for file, data in files.items() %}
{% set parts = file.split('_') %}
{% set stratified = parts[6].split('.')[0] %}
<tr id="{{ file }}">
<td>{{ parts[2] }}</td>
<td>{{ parts[1] }}</td>
<td>{{ parts[3] }}</td>