Allow only one bookmark to be added for multiple fast starring
[chromium-blink-merge.git] / chrome / browser / resources / chromeos / network_configuration / js / main_status.js
blob0bd60d710813a71d20eecb3f085de09969392e1f
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.
5 function onPageLoad() {
6 var networkStatus = $('network-status');
7 network.status.NetworkStatusList.decorate(networkStatus);
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');
15 });
18 document.addEventListener('DOMContentLoaded', onPageLoad);