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,12 +81,8 @@
|
||||||
$('#masthead .logout-btn').hide();
|
$('#masthead .logout-btn').hide();
|
||||||
store.set('path-1', '#/login');
|
store.set('path-1', '#/login');
|
||||||
if ($('div.loader').length === 0) {
|
if ($('div.loader').length === 0) {
|
||||||
setInterval(function () {
|
|
||||||
if (!app.loaded && $('div.loader').length === 0) {
|
|
||||||
$('#main').append('<div class="loader loader-content"></div>');
|
$('#main').append('<div class="loader loader-content"></div>');
|
||||||
}
|
}
|
||||||
}, 500);
|
|
||||||
}
|
|
||||||
|
|
||||||
c.checkInstall(function(isInstalled) {
|
c.checkInstall(function(isInstalled) {
|
||||||
if (isInstalled) {
|
if (isInstalled) {
|
||||||
|
|
|
@ -74,12 +74,8 @@
|
||||||
|
|
||||||
loaded = false;
|
loaded = false;
|
||||||
if ($('div.loader').length === 0) {
|
if ($('div.loader').length === 0) {
|
||||||
setInterval(function () {
|
|
||||||
if (!loaded && $('div.loader').length === 0) {
|
|
||||||
$('#main').append('<div class="loader loader-content"></div>');
|
$('#main').append('<div class="loader loader-content"></div>');
|
||||||
}
|
}
|
||||||
}, 500);
|
|
||||||
}
|
|
||||||
|
|
||||||
jQuery.ajax({
|
jQuery.ajax({
|
||||||
url: 'https://'+ store.get('url') + uri,
|
url: 'https://'+ store.get('url') + uri,
|
||||||
|
|
Loading…
Add table
Reference in a new issue