Correction finale du loader
This commit is contained in:
parent
0f7b4a8e91
commit
61a2daa43d
|
@ -126,6 +126,9 @@ var connected = !( DOM.AUTH.children[0].innerHTML == 'Connexion' );
|
|||
if( clearParam === true ) // si clearParam est vrai
|
||||
pageM.vars = new Array(pageM.vars[0]); // on efface les paramètres de l'URL
|
||||
|
||||
// avant de charger la page, on affiche le loader
|
||||
DOM.WRAPPER.style.backgroundImage = 'url(../src/loader.svg)';
|
||||
|
||||
// on charge la page
|
||||
pageM.setPage( section.dataset.link );
|
||||
|
||||
|
@ -152,6 +155,8 @@ var connected = !( DOM.AUTH.children[0].innerHTML == 'Connexion' );
|
|||
selectSubSection( selectedSubSectionFromURL );
|
||||
else // sinon, on selectionne celle définie dans le HTML
|
||||
selectSubSection( document.querySelector('#HEADER > nav.subsections > span.active') );
|
||||
|
||||
DOM.WRAPPER.style.backgroundImage = 'none';
|
||||
|
||||
}, false);
|
||||
|
||||
|
|
Loading…
Reference in New Issue