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

Side by Side Diff: chrome/common/extensions/docs/server2/test_data/example_zipper/basic/popup.js

Issue 10878056: Extensions Docs Server: Fix samples page and ExampleZipper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test + fixes Created 8 years, 3 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
« no previous file with comments | « chrome/common/extensions/docs/server2/test_data/example_zipper/basic/popup.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Search the bookmarks when entering the search keyword. 5 // Search the bookmarks when entering the search keyword.
6 $(function() { 6 $(function() {
7 $('#search').change(function() { 7 $('#search').change(function() {
8 $('#bookmarks').empty(); 8 $('#bookmarks').empty();
9 dumpBookmarks($('#search').val()); 9 dumpBookmarks($('#search').val());
10 }); 10 });
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 var li = $(bookmarkNode.title ? '<li>' : '<div>').append(span); 119 var li = $(bookmarkNode.title ? '<li>' : '<div>').append(span);
120 if (bookmarkNode.children && bookmarkNode.children.length > 0) { 120 if (bookmarkNode.children && bookmarkNode.children.length > 0) {
121 li.append(dumpTreeNodes(bookmarkNode.children, query)); 121 li.append(dumpTreeNodes(bookmarkNode.children, query));
122 } 122 }
123 return li; 123 return li;
124 } 124 }
125 125
126 document.addEventListener('DOMContentLoaded', function () { 126 document.addEventListener('DOMContentLoaded', function () {
127 dumpBookmarks(); 127 dumpBookmarks();
128 }); 128 });
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/test_data/example_zipper/basic/popup.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698