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 @@
</td>
</tr>
<tr>
<td id="shared-network" class="option-name"
<td id="wifi-shared-network" class="option-name"
i18n-content="inetNetworkShared">
</td>
</tr>
......
......@@ -373,13 +373,18 @@ cr.define('options.internet', function() {
!this.cellular || !this.gsm);
updateHidden('#details-internet-page .apn-details-view', true);
// Password and shared.
// Wifi - Password and shared.
updateHidden('#details-internet-page #password-details',
!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',
!this.showPreferred);
// WiMAX.
updateHidden('#details-internet-page #wimax-shared-network',
!this.shared);
// Proxy
this.updateProxyBannerVisibility_();
this.toggleSingleProxy_();
......@@ -575,6 +580,10 @@ cr.define('options.internet', function() {
chrome.send('setAutoConnect',
[String(servicePath),
$('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) {
chrome.send('setAutoConnect',
[String(servicePath),
......@@ -789,8 +798,7 @@ cr.define('options.internet', function() {
detailsPage.gsm = false;
detailsPage.shared = data.shared;
detailsPage.showPreferred = data.showPreferred;
$('prefer-network-wimax').checked = data.preferred.value;
$('prefer-network-wimax').disabled = !data.remembered;
$('wimax-connection-state').textContent = data.connectionState;
$('auto-connect-network-wimax').checked = data.autoConnect.value;
$('auto-connect-network-wimax').disabled = !data.remembered;
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