mirror of
https://github.com/Doodle3D/doodle3d-connect.git
synced 2024-11-16 19:17:56 +01:00
Retrieve box update status after network status
This commit is contained in:
parent
730000103f
commit
8258673a89
@ -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.";
|
||||||
|
Loading…
Reference in New Issue
Block a user