From 8258673a899dabf64cb84db31a7da5608e8297fd Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Fri, 23 May 2014 22:59:38 +0200 Subject: [PATCH] Retrieve box update status after network status --- js/BoxPage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/BoxPage.js b/js/BoxPage.js index 69be2ae..a2b2644 100644 --- a/js/BoxPage.js +++ b/js/BoxPage.js @@ -61,7 +61,6 @@ _networkAPI.init(boxURL); retrieveNetworkStatus(); _updateAPI.init(boxURL); - retrieveUpdateStatus(); }); $.mobile.document.on( "pagebeforehide", PAGE_ID, function( event, data ) { clearTimeout(_retryRetrieveStatusDelay); @@ -92,6 +91,8 @@ updateLink = d3d.util.replaceURLParameters(updateLink,_boxData); _updateItem.find("a").attr("href",updateLink); + retrieveUpdateStatus(); + } else { // offline //console.log("offline"); introText = "Please connect your WiFi-Box to the internet. You can also use it offline, but then you won't be able to update.";