0
0
mirror of https://github.com/Doodle3D/doodle3d-connect.git synced 2024-12-26 02:23:48 +01:00

Retrieve box update status after network status

This commit is contained in:
peteruithoven 2014-05-23 22:59:38 +02:00
parent 730000103f
commit 8258673a89

View File

@ -61,7 +61,6 @@
_networkAPI.init(boxURL); _networkAPI.init(boxURL);
retrieveNetworkStatus(); retrieveNetworkStatus();
_updateAPI.init(boxURL); _updateAPI.init(boxURL);
retrieveUpdateStatus();
}); });
$.mobile.document.on( "pagebeforehide", PAGE_ID, function( event, data ) { $.mobile.document.on( "pagebeforehide", PAGE_ID, function( event, data ) {
clearTimeout(_retryRetrieveStatusDelay); clearTimeout(_retryRetrieveStatusDelay);
@ -92,6 +91,8 @@
updateLink = d3d.util.replaceURLParameters(updateLink,_boxData); updateLink = d3d.util.replaceURLParameters(updateLink,_boxData);
_updateItem.find("a").attr("href",updateLink); _updateItem.find("a").attr("href",updateLink);
retrieveUpdateStatus();
} else { // offline } else { // offline
//console.log("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."; introText = "Please connect your WiFi-Box to the internet. You can also use it offline, but then you won't be able to update.";