mirror of
https://github.com/Doctorado-ML/benchmark.git
synced 2025-08-24 03:45:56 +00:00
22 lines
732 B
JavaScript
22 lines
732 B
JavaScript
$(document).ready(function () {
|
|
// Check if row is selected
|
|
$('#report-table tbody').on('click', 'tr', function () {
|
|
if ($(this).hasClass('{{ selected }}')) {
|
|
$(this).removeClass('{{ selected }}');
|
|
} else {
|
|
$('#report-table tbody tr.{{ selected }}').removeClass("{{ selected }}")
|
|
$(this).addClass('{{ selected }}');
|
|
}
|
|
});
|
|
$(document).ajaxStart(function(){
|
|
$("body").addClass('ajaxLoading');
|
|
});
|
|
$(document).ajaxStop(function(){
|
|
$("body").removeClass('ajaxLoading');
|
|
});
|
|
});
|
|
function excelFile() {
|
|
var selectedFiles = ["{{ file }}"];
|
|
var compare = "{{ compare }}" == "True";
|
|
excelFiles(selectedFiles, compare)
|
|
} |