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 3// found in the LICENSE file. 4 5function onPageLoad() { 6 var networkStatus = $('network-status'); 7 network.status.NetworkStatusList.decorate(networkStatus); 8 9 networkStatus.setUserActionHandler(function(action) { 10 if (action.command == 'openConfiguration') { 11 var configUrl = 12 chrome.extension.getURL('config.html?network=' + action.networkId); 13 window.open(configUrl, 'network-config-frame'); 14 } 15 }); 16} 17 18document.addEventListener('DOMContentLoaded', onPageLoad); 19