0
0
mirror of https://github.com/Doodle3D/doodle3d-connect.git synced 2024-11-16 11:07:57 +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);
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.";