OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 function onPageLoad() { | 5 function onPageLoad() { |
6 var networkStatus = $('network-status'); | 6 var networkStatus = $('network-status'); |
7 network.status.NetworkStatusList.decorate(networkStatus); | 7 network.status.NetworkStatusList.decorate(networkStatus); |
8 | 8 |
9 networkStatus.setUserActionHandler(function(action) { | 9 networkStatus.setUserActionHandler(function(action) { |
10 if (action.command == 'openConfiguration') { | 10 if (action.command == 'openConfiguration') { |
11 var config_url = | 11 var configUrl = |
12 chrome.extension.getURL('config.html?network=' + action.networkId); | 12 chrome.extension.getURL('config.html?network=' + action.networkId); |
13 window.open(config_url, 'network-config-frame'); | 13 window.open(configUrl, 'network-config-frame'); |
14 } | 14 } |
15 }); | 15 }); |
16 } | 16 } |
17 | 17 |
18 document.addEventListener('DOMContentLoaded', onPageLoad); | 18 document.addEventListener('DOMContentLoaded', onPageLoad); |
OLD | NEW |