mirror of
https://github.com/Doctorado-ML/beflask.git
synced 2025-08-16 07:35:51 +00:00
17 lines
549 B
JavaScript
17 lines
549 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');
|
|
});
|
|
}); |