OLD | NEW |
---|---|
(Empty) | |
1 <script> | |
2 (function() { | |
3 function updateNodeBrowser(nodeInfo) { | |
4 var nodeBrowser = document.getElementById('nodeBrowser'); | |
5 nodeInfo.specifics = JSON.stringify(nodeInfo.specifics); | |
6 jstProcess(new JsEvalContext(nodeInfo), nodeBrowser); | |
7 } | |
8 | |
9 function onLoad() { | |
10 chrome.sync.getRootNode(updateNodeBrowser); | |
11 } | |
12 | |
13 document.addEventListener("DOMContentLoaded", onLoad, false); | |
14 })(); | |
15 | |
16 function processNodeLink(link) { | |
17 var id = link.text; | |
18 chrome.sync.getNodeById(id, updateNodeBrowser); | |
19 } | |
20 </script> | |
21 <div class="desc"><h2> Node Browser </h2></div> | |
22 <ul id='nodeBrowser'> | |
23 <li>ID: <span jscontent='id'></span></li> | |
John Gregg
2011/02/17 20:49:38
nit: maybe indent for readability
akalin
2011/02/18 00:36:22
Done.
| |
24 <li>Modification Time: <span jscontent='modificationTime'></span></li> | |
25 <li>Parent: <a jscontent='parentId' href="#" onclick="processNodeLink(this); ret urn false"></a></li> | |
26 <li>Is Folder: <span jscontent='isFolder'></span></li> | |
27 <li>Title: <span jscontent='title'></span></li> | |
28 <li>Type: <span jscontent='type'></span></li> | |
29 <li>Specifics: <span jscontent='specifics'></span></li> | |
30 <li>External ID: <span jscontent='externalId'></span></li> | |
31 <li>Predecessor: <a jscontent='predecessorId' href="#" onclick="processNodeLink( this); return false"></a></li> | |
32 <li>Successor: <a jscontent='successorId' href="#" onclick="processNodeLink(this ); return false"></a></li> | |
33 <li>First Child: <a jscontent='firstChildId' href="#" onclick="processNodeLink(t his); return false"></a></li> | |
34 </ul> | |
OLD | NEW |