Display waiting modal during update checking
This commit is contained in:
parent
5eea446645
commit
5c097e841b
2 changed files with 7 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
CACHE MANIFEST
|
CACHE MANIFEST
|
||||||
# Date : 2014/11/22 - Version : 11
|
# Date : 2014/11/24 - Version : 1
|
||||||
|
|
||||||
CACHE:
|
CACHE:
|
||||||
index.html
|
index.html
|
||||||
|
|
|
@ -954,7 +954,11 @@ pleaseWaitHide=function() {
|
||||||
* Cache / Update
|
* Cache / Update
|
||||||
*************************/
|
*************************/
|
||||||
|
|
||||||
|
_checkForUpgrade=false;
|
||||||
onUpdateReady=function() {
|
onUpdateReady=function() {
|
||||||
|
if (_checkForUpgrade) {
|
||||||
|
pleaseWaitHide();
|
||||||
|
}
|
||||||
myconfirm(
|
myconfirm(
|
||||||
"Une nouvelle version de l'application est disponible. Voulez-vous lancer la mise à jour ?",
|
"Une nouvelle version de l'application est disponible. Voulez-vous lancer la mise à jour ?",
|
||||||
onConfirmUpdate,null,{}
|
onConfirmUpdate,null,{}
|
||||||
|
@ -966,14 +970,15 @@ onConfirmUpdate=function() {
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
_checkForUpgrade=false;
|
|
||||||
updateApp = function() {
|
updateApp = function() {
|
||||||
|
pleaseWaitShow();
|
||||||
_checkForUpgrade=true;
|
_checkForUpgrade=true;
|
||||||
window.applicationCache.update();
|
window.applicationCache.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
onNoUpdate = function() {
|
onNoUpdate = function() {
|
||||||
if (_checkForUpgrade) {
|
if (_checkForUpgrade) {
|
||||||
|
pleaseWaitHide();
|
||||||
_checkForUpgrade=false;
|
_checkForUpgrade=false;
|
||||||
alert('Aucune mise à jour disponible');
|
alert('Aucune mise à jour disponible');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue