diff --git a/cache.manifest b/cache.manifest index 912f31a..069723c 100644 --- a/cache.manifest +++ b/cache.manifest @@ -1,5 +1,5 @@ CACHE MANIFEST -# Date : 2014/11/22 - Version : 11 +# Date : 2014/11/24 - Version : 1 CACHE: index.html diff --git a/inc/myco.js b/inc/myco.js index c030cad..9cdd14f 100644 --- a/inc/myco.js +++ b/inc/myco.js @@ -954,7 +954,11 @@ pleaseWaitHide=function() { * Cache / Update *************************/ +_checkForUpgrade=false; onUpdateReady=function() { + if (_checkForUpgrade) { + pleaseWaitHide(); + } myconfirm( "Une nouvelle version de l'application est disponible. Voulez-vous lancer la mise à jour ?", onConfirmUpdate,null,{} @@ -966,14 +970,15 @@ onConfirmUpdate=function() { location.reload(); } -_checkForUpgrade=false; updateApp = function() { + pleaseWaitShow(); _checkForUpgrade=true; window.applicationCache.update(); } onNoUpdate = function() { if (_checkForUpgrade) { + pleaseWaitHide(); _checkForUpgrade=false; alert('Aucune mise à jour disponible'); }