Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Side by Side Diff: chrome/browser/resources/options2/chromeos/internet_detail.js

Issue 10826092: Fix issue with the Buy Plan button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('options.internet', function() { 5 cr.define('options.internet', function() {
6 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; 7 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel;
8 8
9 /** 9 /**
10 * Network settings constants. These enums must match their C++ 10 * Network settings constants. These enums must match their C++
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 function(event) { 117 function(event) {
118 DetailsInternetPage.setDetails(); 118 DetailsInternetPage.setDetails();
119 DetailsInternetPage.disconnectNetwork(); 119 DetailsInternetPage.disconnectNetwork();
120 }); 120 });
121 121
122 $('activate-details').addEventListener('click', function(event) { 122 $('activate-details').addEventListener('click', function(event) {
123 DetailsInternetPage.activateFromDetails(); 123 DetailsInternetPage.activateFromDetails();
124 }); 124 });
125 125
126 $('buyplan-details').addEventListener('click', function(event) { 126 $('buyplan-details').addEventListener('click', function(event) {
127 chrome.send('buyDataPlan', [params.servicePath]); 127 var data = $('connection-state').data;
128 chrome.send('buyDataPlan', [String(data.servicePath)]);
128 OptionsPage.closeOverlay(); 129 OptionsPage.closeOverlay();
129 }); 130 });
130 131
131 $('view-account-details').addEventListener('click', function(event) { 132 $('view-account-details').addEventListener('click', function(event) {
132 chrome.send('showMorePlanInfo'); 133 chrome.send('showMorePlanInfo');
133 OptionsPage.closeOverlay(); 134 OptionsPage.closeOverlay();
134 }); 135 });
135 136
136 $('cellular-apn-use-default').addEventListener('click', function(event) { 137 $('cellular-apn-use-default').addEventListener('click', function(event) {
137 var data = $('connection-state').data; 138 var data = $('connection-state').data;
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 904
904 // Don't show page name in address bar and in history to prevent people 905 // Don't show page name in address bar and in history to prevent people
905 // navigate here by hand and solve issue with page session restore. 906 // navigate here by hand and solve issue with page session restore.
906 OptionsPage.showPageByName('detailsInternetPage', false); 907 OptionsPage.showPageByName('detailsInternetPage', false);
907 }; 908 };
908 909
909 return { 910 return {
910 DetailsInternetPage: DetailsInternetPage 911 DetailsInternetPage: DetailsInternetPage
911 }; 912 };
912 }); 913 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698