Created
May 3, 2012 06:10
-
-
Save fczuardi/2583660 to your computer and use it in GitHub Desktop.
Gaia changes for the Wifi config screen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/apps/settings/js/wifi.js b/apps/settings/js/wifi.js | |
| index 9ac10b0..2c6a7a0 100644 | |
| --- a/apps/settings/js/wifi.js | |
| +++ b/apps/settings/js/wifi.js | |
| @@ -14,7 +14,7 @@ window.addEventListener('localized', function scanWifiNetworks(evt) { | |
| // current state | |
| function updateState() { | |
| - var currentNetwork = wifiManager.connectedNetwork; | |
| + var currentNetwork = wifiManager.connection.network; | |
| if (currentNetwork) { | |
| infoBlock.textContent = _('connected', { ssid: currentNetwork.ssid }); | |
| checkbox.checked = true; | |
| @@ -203,7 +203,7 @@ window.addEventListener('localized', function scanWifiNetworks(evt) { | |
| * (transition: connected -> disconnected). | |
| */ | |
| wifiManager.onstatuschange = function(event) { | |
| - var status = wifiManager.connectionStatus.status; | |
| + var status = wifiManager.connection.status; | |
| if (status == 'connected') | |
| gNetworkList.scan(); // refresh the network list | |
| gStatus.textContent = _(status, event.network); // only for ssid | |
| @@ -229,7 +229,7 @@ window.addEventListener('localized', function scanWifiNetworks(evt) { | |
| // and 'wifiManager.connectedNetwork' should be comparable to 'network'. | |
| // Until this is properly implemented, we just compare SSIDs to tell wether | |
| // the network is already connected or not. | |
| - var currentNetwork = wifiManager.connectedNetwork; | |
| + var currentNetwork = wifiManager.connection.network; | |
| return currentNetwork && (currentNetwork.ssid == network.ssid); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment