Commit 1c9515bb authored by zelidrag@chromium.org's avatar zelidrag@chromium.org

Fixed WiMAX network display. Wired auto-connect checkbox properly.

BUG=128429
TEST=make sure WiMAX connection details show up properly in chrome:settings
TBR=csilv

Review URL: https://chromiumcodereview.appspot.com/10411034

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137997 0039d316-1c4b-4281-b951-d872f2087c98
parent 6869771f
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td id="shared-network" class="option-name" <td id="wifi-shared-network" class="option-name"
i18n-content="inetNetworkShared"> i18n-content="inetNetworkShared">
</td> </td>
</tr> </tr>
......
...@@ -373,13 +373,18 @@ cr.define('options.internet', function() { ...@@ -373,13 +373,18 @@ cr.define('options.internet', function() {
!this.cellular || !this.gsm); !this.cellular || !this.gsm);
updateHidden('#details-internet-page .apn-details-view', true); updateHidden('#details-internet-page .apn-details-view', true);
// Password and shared. // Wifi - Password and shared.
updateHidden('#details-internet-page #password-details', updateHidden('#details-internet-page #password-details',
!this.wireless || !this.password); !this.wireless || !this.password);
updateHidden('#details-internet-page #shared-network', !this.shared); updateHidden('#details-internet-page #wifi-shared-network',
!this.shared);
updateHidden('#details-internet-page #prefer-network', updateHidden('#details-internet-page #prefer-network',
!this.showPreferred); !this.showPreferred);
// WiMAX.
updateHidden('#details-internet-page #wimax-shared-network',
!this.shared);
// Proxy // Proxy
this.updateProxyBannerVisibility_(); this.updateProxyBannerVisibility_();
this.toggleSingleProxy_(); this.toggleSingleProxy_();
...@@ -575,6 +580,10 @@ cr.define('options.internet', function() { ...@@ -575,6 +580,10 @@ cr.define('options.internet', function() {
chrome.send('setAutoConnect', chrome.send('setAutoConnect',
[String(servicePath), [String(servicePath),
$('auto-connect-network-wifi').checked ? 'true' : 'false']); $('auto-connect-network-wifi').checked ? 'true' : 'false']);
} else if (data.type == Constants.TYPE_WIMAX) {
chrome.send('setAutoConnect',
[String(servicePath),
$('auto-connect-network-wimax').checked ? 'true' : 'false']);
} else if (data.type == Constants.TYPE_CELLULAR) { } else if (data.type == Constants.TYPE_CELLULAR) {
chrome.send('setAutoConnect', chrome.send('setAutoConnect',
[String(servicePath), [String(servicePath),
...@@ -789,8 +798,7 @@ cr.define('options.internet', function() { ...@@ -789,8 +798,7 @@ cr.define('options.internet', function() {
detailsPage.gsm = false; detailsPage.gsm = false;
detailsPage.shared = data.shared; detailsPage.shared = data.shared;
detailsPage.showPreferred = data.showPreferred; detailsPage.showPreferred = data.showPreferred;
$('prefer-network-wimax').checked = data.preferred.value; $('wimax-connection-state').textContent = data.connectionState;
$('prefer-network-wimax').disabled = !data.remembered;
$('auto-connect-network-wimax').checked = data.autoConnect.value; $('auto-connect-network-wimax').checked = data.autoConnect.value;
$('auto-connect-network-wimax').disabled = !data.remembered; $('auto-connect-network-wimax').disabled = !data.remembered;
if (data.identity) { if (data.identity) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment