aboutsummaryrefslogtreecommitdiffstats
path: root/data/empathy-log-window.html
diff options
context:
space:
mode:
Diffstat (limited to 'data/empathy-log-window.html')
-rw-r--r--data/empathy-log-window.html19
1 files changed, 11 insertions, 8 deletions
diff --git a/data/empathy-log-window.html b/data/empathy-log-window.html
index 034c9301d..987c07a26 100644
--- a/data/empathy-log-window.html
+++ b/data/empathy-log-window.html
@@ -71,7 +71,7 @@ function getToggle(node)
return filterNodes(node, 'SPAN')[0];
}
-function toggleExpander(node, open)
+function setExpander(node, open)
{
var toggle = getToggle(node);
var display;
@@ -102,7 +102,7 @@ function expandAll()
for (var i = 0; i < nodes.length; i++)
{
- toggleExpander(nodes[i], true);
+ setExpander(nodes[i], true);
expandAllRecurse(nodes[i]);
}
@@ -158,17 +158,20 @@ function insertRow (path, text, icon, date_)
toggle.setAttribute('class', 'closed');
toggle.style.display = 'none';
- toggle.onclick = function (e)
+ var contents = document.createElement('p');
+ newnode.appendChild(contents);
+ setContent(contents, text, icon, date_);
+
+ function toggleExpander (e)
{
if (toggle.getAttribute('class') == 'closed')
- toggleExpander(newnode, true);
+ setExpander(newnode, true);
else
- toggleExpander(newnode, false);
+ setExpander(newnode, false);
};
- var contents = document.createElement('p');
- newnode.appendChild(contents);
- setContent(contents, text, icon, date_);
+ toggle.onclick = toggleExpander;
+ contents.ondblclick = toggleExpander;
// if the node is not a top-level node, hide it
if (parentnode != treeview)