Index: chrome/browser/resources/options/chromeos_internet_options.js |
=================================================================== |
--- chrome/browser/resources/options/chromeos_internet_options.js (revision 74823) |
+++ chrome/browser/resources/options/chromeos_internet_options.js (working copy) |
@@ -53,7 +53,7 @@ |
}); |
$('detailsInternetLogin').addEventListener('click', function(event) { |
InternetOptions.loginFromDetails(); |
- });; |
+ }); |
$('activateDetails').addEventListener('click', function(event) { |
InternetOptions.activateFromDetails(); |
}); |
@@ -213,17 +213,27 @@ |
page.setAttribute('nocellplan', true); |
page.removeAttribute('hascellplan'); |
} |
- if (!data.needsPlan) { |
+ |
+ if (!data.needsPlan) |
page.setAttribute('hasactiveplan', true); |
- } else { |
+ else |
page.removeAttribute('hasactiveplan'); |
- } |
- if (data.activated) { |
+ |
+ if (data.activated) |
page.setAttribute('activated', true); |
- } else { |
+ else |
page.removeAttribute('activated'); |
- } |
+ if (data.showBuyButton) |
+ page.setAttribute('showbuy', true); |
+ else |
+ page.removeAttribute('showbuy'); |
+ |
+ if (data.showActivateButton) |
+ page.setAttribute('showactivate', true); |
+ else |
+ page.removeAttribute('showactivate'); |
+ |
// Nudge webkit so that it redraws the details overlay page. |
// See http://crosbug.com/9616 for details. |
// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=50176 |
@@ -339,6 +349,16 @@ |
$('imsi').textContent = data.imsi; |
page.setAttribute('gsm', true); |
} |
+ |
+ if (data.showBuyButton) |
+ page.setAttribute('showbuy', true); |
+ else |
+ page.removeAttribute('showbuy'); |
+ if (data.showActivateButton) |
+ page.setAttribute('showactivate', true); |
+ else |
+ page.removeAttribute('showactivate'); |
+ |
page.removeAttribute('hascellplan'); |
if (data.connected) { |
page.removeAttribute('nocellplan'); |