From 519ce2e2ec4b69f29ac7bb7b960641d1350d3218 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Mon, 10 Mar 2014 14:31:03 +0100 Subject: Avoid bubbling of clicks to treelist expand/collapse toggles --- program/js/treelist.js | 1 + 1 file changed, 1 insertion(+) (limited to 'program/js/treelist.js') diff --git a/program/js/treelist.js b/program/js/treelist.js index d56e7b8c9..d856fc8ff 100644 --- a/program/js/treelist.js +++ b/program/js/treelist.js @@ -81,6 +81,7 @@ function rcube_treelist_widget(node, p) // register click handlers on list container.on('click', 'div.treetoggle', function(e){ toggle(dom2id($(this).parent())); + e.stopPropagation(); }); container.on('click', 'li', function(e){ -- cgit v1.2.3