mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Prevent delay while displaying pacman loader.
This commit is contained in:
parent
5d043ff0d3
commit
312eba3b7c
2 changed files with 2 additions and 10 deletions
|
@ -81,11 +81,7 @@
|
|||
$('#masthead .logout-btn').hide();
|
||||
store.set('path-1', '#/login');
|
||||
if ($('div.loader').length === 0) {
|
||||
setInterval(function () {
|
||||
if (!app.loaded && $('div.loader').length === 0) {
|
||||
$('#main').append('<div class="loader loader-content"></div>');
|
||||
}
|
||||
}, 500);
|
||||
$('#main').append('<div class="loader loader-content"></div>');
|
||||
}
|
||||
|
||||
c.checkInstall(function(isInstalled) {
|
||||
|
|
|
@ -74,11 +74,7 @@
|
|||
|
||||
loaded = false;
|
||||
if ($('div.loader').length === 0) {
|
||||
setInterval(function () {
|
||||
if (!loaded && $('div.loader').length === 0) {
|
||||
$('#main').append('<div class="loader loader-content"></div>');
|
||||
}
|
||||
}, 500);
|
||||
$('#main').append('<div class="loader loader-content"></div>');
|
||||
}
|
||||
|
||||
jQuery.ajax({
|
||||
|
|
Loading…
Reference in a new issue