diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-08-08 11:15:06 +1000 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-08-08 11:15:06 +1000 |
commit | daae637bdf6ea311c306eefe298e5760e2af22dc (patch) | |
tree | 3ddeae0b03b604fab6a3668e280e266b06d797f1 /data/empathy-log-window.html | |
parent | c6837f3edb97b06d1aff8e4300d58653b9484713 (diff) | |
download | telepathy-account-widgets-daae637bdf6ea311c306eefe298e5760e2af22dc.tar.gz |
Reimplement log_window_maybe_expand_events()
Diffstat (limited to 'data/empathy-log-window.html')
-rw-r--r-- | data/empathy-log-window.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/data/empathy-log-window.html b/data/empathy-log-window.html index 839ddee5..79471770 100644 --- a/data/empathy-log-window.html +++ b/data/empathy-log-window.html @@ -80,6 +80,25 @@ function toggleExpander(node, open) nodes[i].style.display = display; } +function expandAll() +{ + function expandAllRecurse(node) + { + var nodes = getNodes(node); + + for (var i = 0; i < nodes.length; i++) + { + toggleExpander(nodes[i], true); + + expandAllRecurse(nodes[i]); + } + } + + var treeview = document.getElementById('treeview'); + + expandAllRecurse(treeview); +} + function insertRow (path, text) { var treeview = document.getElementById('treeview'); |