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

Side by Side Diff: chrome/common/extensions/docs/server2/static/js/sidebar.js

Issue 10823144: Extension docs server: tweak CSS to make it look much more like the current (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: licenses 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
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 (function() { 5 (function() {
6 /** 6 /**
7 * Toggles the display of nodes given the status of their associated controls. 7 * Toggles the display of nodes given the status of their associated controls.
8 * 8 *
9 * For each node passed to this function, check to see if a toggle has been 9 * For each node passed to this function, check to see if a toggle has been
10 * inserted into the node's parent. If yes, change the state of the toggle 10 * inserted into the node's parent. If yes, change the state of the toggle
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 }; 78 };
79 item.insertBefore(a, item.firstChild); 79 item.insertBefore(a, item.firstChild);
80 toggleList(item.getElementsByTagName('ul')); 80 toggleList(item.getElementsByTagName('ul'));
81 } 81 }
82 } 82 }
83 if (selectedNode) { 83 if (selectedNode) {
84 revealAncestor(selectedNode); 84 revealAncestor(selectedNode);
85 } 85 }
86 }; 86 };
87 87
88 window.initSidebar = initSidebar; 88 initSidebar();
89 })() 89 })()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698