1 // Copyright (c) 2011 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.
7 var toggleDisplay = function(event) {
8 var originatingButton = event.target;
9 var detailsNode = originatingButton.parentNode.getElementsByClassName(
12 if (detailsNode.getAttribute('hidden') != null) {
13 detailsNode.removeAttribute('hidden');
15 detailsNode.setAttribute('hidden', 'hidden');
19 var syncEvents = $('sync-events');
21 var entries = chrome.sync.log.entries;
22 var displaySyncEvents = function() {
23 var eventTemplateContext = {
26 var context = new JsEvalContext(eventTemplateContext);
27 jstProcess(context, syncEvents);
30 syncEvents.addEventListener('click', toggleDisplay);
31 chrome.sync.log.addEventListener('append', function(event) {