Add datasets and enhance select

This commit is contained in:
2023-06-05 20:04:12 +02:00
parent 11bef3d7f4
commit 97677b185f
7 changed files with 136 additions and 11 deletions

View File

@@ -0,0 +1,26 @@
{% extends "base.html" %}
{% block content %}
{% include "_table_datasets.html" %}
{% endblock %}
{% block jscript %}
{{ super() }}
<script>
$(document).ready(function () {
$(document).ajaxStart(function(){
$("body").addClass('ajaxLoading');
});
$(document).ajaxStop(function(){
$("body").removeClass('ajaxLoading');
});
});
// Check if row is selected
$('#file-table tbody').on('click', 'tr', function () {
if ($(this).hasClass('selected')) {
$(this).removeClass('selected');
} else {
$('#file-table tbody tr.selected').removeClass("selected")
$(this).addClass('selected');
}
});
</script>
{% endblock %}