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

Side by Side Diff: chrome/browser/resources/sync_internals/sync_node_browser.html

Issue 6538047: [Sync] Clean up about:sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix HTML errors Created 9 years, 10 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/browser/resources/sync_internals/sync_index.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 <script> 1 <script>
2 (function() { 2 (function() {
3 function onLoad() { 3 function onLoad() {
4 chrome.sync.getRootNode(updateNodeBrowser); 4 chrome.sync.getRootNode(updateNodeBrowser);
5 } 5 }
6 6
7 document.addEventListener("DOMContentLoaded", onLoad, false); 7 document.addEventListener("DOMContentLoaded", onLoad, false);
8 })(); 8 })();
9 9
10 function updateNodeBrowser(nodeInfo) { 10 function updateNodeBrowser(nodeInfo) {
11 var nodeBrowser = document.getElementById('nodeBrowser'); 11 var nodeBrowser = document.getElementById('nodeBrowser');
12 nodeInfo.specifics = JSON.stringify(nodeInfo.specifics); 12 nodeInfo.specifics = JSON.stringify(nodeInfo.specifics, null, 2);
13 jstProcess(new JsEvalContext(nodeInfo), nodeBrowser); 13 jstProcess(new JsEvalContext(nodeInfo), nodeBrowser);
14 } 14 }
15 15
16 function processNodeLink(link) { 16 function processNodeLink(link) {
17 var id = link.text; 17 var id = link.text;
18 chrome.sync.getNodeById(id, updateNodeBrowser); 18 chrome.sync.getNodeById(id, updateNodeBrowser);
19 } 19 }
20 </script> 20 </script>
21 <div class="desc"><h2> Node Browser </h2></div> 21
22 <ul id='nodeBrowser'> 22 <style>
23 <li>ID: <span jscontent='id'></span></li> 23 table#nodeBrowser tr:nth-child(odd) {
24 <li>Modification Time: <span jscontent='modificationTime'></span></li> 24 background: #eff3ff;
25 <li>Parent: <a jscontent='parentId' href="#" onclick="processNodeLink(this); r eturn false"></a></li> 25 }
26 <li>Is Folder: <span jscontent='isFolder'></span></li> 26 </style>
27 <li>Title: <span jscontent='title'></span></li> 27
28 <li>Type: <span jscontent='type'></span></li> 28 <table id='nodeBrowser'>
29 <li>Specifics: <span jscontent='specifics'></span></li> 29 <tr>
30 <li>External ID: <span jscontent='externalId'></span></li> 30 <td>ID</td>
31 <li>Predecessor: <a jscontent='predecessorId' href="#" onclick="processNodeLin k(this); return false"></a></li> 31 <td jscontent='id'></td>
32 <li>Successor: <a jscontent='successorId' href="#" onclick="processNodeLink(th is); return false"></a></li> 32 </tr>
33 <li>First Child: <a jscontent='firstChildId' href="#" onclick="processNodeLink (this); return false"></a></li> 33 <tr>
34 </ul> 34 <td>Modification Time</td>
35 <td jscontent='modificationTime'></td>
36 </tr>
37 <tr>
38 <td>Parent</td>
39 <td><a jscontent='parentId' href="#" onclick="processNodeLink(this); return false"></a></td>
40 </tr>
41 <tr>
42 <td>Is Folder</td>
43 <td jscontent='isFolder'></td>
44 </tr>
45 <tr>
46 <td>Title</td>
47 <td jscontent='title'></td>
48 </tr>
49 <tr>
50 <td>Type</td>
51 <td jscontent='type'></td>
52 </tr>
53 <tr>
54 <td>Specifics</td>
55 <td><pre jscontent='specifics'></pre></td>
56 </tr>
57 <tr>
58 <td>External ID</td>
59 <td jscontent='externalId'></td>
60 </tr>
61 <tr>
62 <td>Predecessor</td>
63 <td><a jscontent='predecessorId' href="#" onclick="processNodeLink(this); re turn false"></a></td>
64 </tr>
65 <tr>
66 <td>Successor</td>
67 <td><a jscontent='successorId' href="#" onclick="processNodeLink(this); retu rn false"></a></td>
68 </tr>
69 <tr>
70 <td>First Child</td>
71 <td><a jscontent='firstChildId' href="#" onclick="processNodeLink(this); ret urn false"></a></td>
72 </tr>
73 </table>
OLDNEW
« no previous file with comments | « chrome/browser/resources/sync_internals/sync_index.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698