Fix #246. Assume ap created when empty network status

This commit is contained in:
peteruithoven 2014-05-22 13:58:24 +02:00
parent 953d50e5fc
commit 53843f499c
1 changed files with 3 additions and 0 deletions

View File

@ -145,6 +145,9 @@ function NetworkPanel() {
this.retrieveNetworkStatus = function(connecting) {
//console.log("NetworkPanel:retrieveNetworkStatus");
_api.status(function(data) {
if(data.status === "") {
data.status = NetworkAPI.STATUS.CREATED.toString();
}
if(typeof data.status === 'string') {
data.status = parseInt(data.status);
}