Skip to content

Commit

Permalink
Prevent an update/status call to a undefined url
Browse files Browse the repository at this point in the history
  • Loading branch information
peteruithoven committed Jun 17, 2015
1 parent 5e451d1 commit ef141ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/BoxPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,15 @@
//console.log(" _boxData: ",_boxData);

_title.text(_boxData.wifiboxid);
setNetworkStatus(NetworkAPI.STATUS.CONNECTED);

var drawLink = (_boxData.link)? _boxData.link : boxURL;
_page.find("#drawItem a").attr("href",drawLink);

_networkAPI.init(boxURL);
retrieveNetworkStatus();
_updateAPI.init(boxURL);

setNetworkStatus(NetworkAPI.STATUS.CONNECTED);
retrieveNetworkStatus();
});
$.mobile.document.on( "pagebeforehide", PAGE_ID, function( event, data ) {
clearTimeout(_retryRetrieveStatusDelay);
Expand Down

0 comments on commit ef141ea

Please sign in to comment.