mirror of
https://github.com/Doctorado-ML/benchmark.git
synced 2025-08-15 23:45:54 +00:00
Add wait cursor during ajax
This commit is contained in:
@@ -10,21 +10,24 @@
|
|||||||
crossorigin="anonymous"
|
crossorigin="anonymous"
|
||||||
/>
|
/>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
font-family: Courier;
|
font-family: Courier;
|
||||||
}
|
}
|
||||||
#file-table tbody tr.selected td {
|
#file-table tbody tr.selected td {
|
||||||
background-color: #0dcaf0;
|
background-color: #0dcaf0;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
#report-table tbody tr.selected td {
|
#report-table tbody tr.selected td {
|
||||||
background-color: #0dcaf0;
|
background-color: #0dcaf0;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
.btn-small {
|
.btn-small {
|
||||||
padding: 0.25rem 0.5rem;
|
padding: 0.25rem 0.5rem;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
}
|
}
|
||||||
|
.ajaxLoading {
|
||||||
|
cursor: progress !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
{% else %}
|
{% else %}
|
||||||
<link
|
<link
|
||||||
@@ -39,6 +42,9 @@
|
|||||||
.tag {
|
.tag {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
.ajaxLoading {
|
||||||
|
cursor: progress !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<link
|
<link
|
||||||
|
@@ -8,6 +8,12 @@ $(document).ready(function () {
|
|||||||
$(this).addClass('{{ selected }}');
|
$(this).addClass('{{ selected }}');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$(document).ajaxStart(function(){
|
||||||
|
$("body").addClass('ajaxLoading');
|
||||||
|
});
|
||||||
|
$(document).ajaxStop(function(){
|
||||||
|
$("body").removeClass('ajaxLoading');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
function excelFile() {
|
function excelFile() {
|
||||||
var selectedFiles = ["{{ file }}"];
|
var selectedFiles = ["{{ file }}"];
|
||||||
|
@@ -23,6 +23,12 @@ $(document).ready(function () {
|
|||||||
$(this).addClass('{{ selected }}');
|
$(this).addClass('{{ selected }}');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$(document).ajaxStart(function(){
|
||||||
|
$("body").addClass('ajaxLoading');
|
||||||
|
});
|
||||||
|
$(document).ajaxStop(function(){
|
||||||
|
$("body").removeClass('ajaxLoading');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
function showFile(selectedFile) {
|
function showFile(selectedFile) {
|
||||||
var form = $('<form action="/show" method="post">' +
|
var form = $('<form action="/show" method="post">' +
|
||||||
|
Reference in New Issue
Block a user