| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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', function() { | 5 cr.define('options', function() { |
| 6 | 6 |
| 7 var OptionsPage = options.OptionsPage; | 7 var OptionsPage = options.OptionsPage; |
| 8 | 8 |
| 9 ///////////////////////////////////////////////////////////////////////////// | 9 ///////////////////////////////////////////////////////////////////////////// |
| 10 // InternetOptions class: | 10 // InternetOptions class: |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 }; | 52 }; |
| 53 $('detailsInternetLogin').onclick = function(event) { | 53 $('detailsInternetLogin').onclick = function(event) { |
| 54 InternetOptions.loginFromDetails(); | 54 InternetOptions.loginFromDetails(); |
| 55 }; | 55 }; |
| 56 $('enableWifi').onclick = function(event) { | 56 $('enableWifi').onclick = function(event) { |
| 57 event.target.disabled = true; | 57 event.target.disabled = true; |
| 58 chrome.send('enableWifi', []); | 58 chrome.send('enableWifi', []); |
| 59 }; | 59 }; |
| 60 $('disableWifi').onclick = function(event) { | 60 $('disableWifi').onclick = function(event) { |
| 61 event.target.disabled = true; | 61 event.target.disabled = true; |
| 62 chrome.send('disableWifi', []); | 62 chrome.send('disableWifi', []); |
| 63 }; | 63 }; |
| 64 $('enableCellular').onclick = function(event) { | 64 $('enableCellular').onclick = function(event) { |
| 65 event.target.disabled = true; | 65 event.target.disabled = true; |
| 66 chrome.send('enableCellular', []); | 66 chrome.send('enableCellular', []); |
| 67 }; | 67 }; |
| 68 $('disableCellular').onclick = function(event) { | 68 $('disableCellular').onclick = function(event) { |
| 69 event.target.disabled = true; | 69 event.target.disabled = true; |
| 70 chrome.send('disableCellular', []); | 70 chrome.send('disableCellular', []); |
| 71 }; | 71 }; |
| 72 $('purchaseMore').onclick = function(event) { | 72 $('purchaseMore').onclick = function(event) { |
| 73 chrome.send('buyDataPlan', []); | 73 chrome.send('buyDataPlan', []); |
| 74 }; | 74 }; |
| 75 $('moreInfo').onclick = function(event) { | 75 $('moreInfo').onclick = function(event) { |
| 76 chrome.send('showMorePlanInfo', []); | 76 chrome.send('showMorePlanInfo', []); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 this.showNetworkDetails_(); | 79 this.showNetworkDetails_(); |
| 80 }, | 80 }, |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 } | 301 } |
| 302 OptionsPage.showOverlay('detailsInternetPage'); | 302 OptionsPage.showOverlay('detailsInternetPage'); |
| 303 }; | 303 }; |
| 304 | 304 |
| 305 // Export | 305 // Export |
| 306 return { | 306 return { |
| 307 InternetOptions: InternetOptions | 307 InternetOptions: InternetOptions |
| 308 }; | 308 }; |
| 309 | 309 |
| 310 }); | 310 }); |
| OLD | NEW |