Display waiting modal during update checking

This commit is contained in:
Benjamin Renard 2014-11-24 19:27:46 +01:00 committed by root
parent 5eea446645
commit 5c097e841b
2 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,5 @@
CACHE MANIFEST
# Date : 2014/11/22 - Version : 11
# Date : 2014/11/24 - Version : 1
CACHE:
index.html

View file

@ -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');
}