mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 05:05:55 +08:00
12 lines
245 B
JavaScript
12 lines
245 B
JavaScript
/* Loading overlay for search */
|
|
$("#search-bar").submit(function (){
|
|
if( $("#update-canvas") ){
|
|
$(document.body).spin(true);
|
|
setTimeout(function(){
|
|
$(".spinner").remove();
|
|
}, 1000);
|
|
} else {
|
|
animateSpinner();
|
|
}
|
|
});
|
|
|