From a282c8d1e1d9038864fcdc1f0df6f714d557bd6d Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 16 Apr 2008 00:44:57 +0000 Subject: [PATCH] Bug fix: Clicking the expander for a link that just got its first child didn't appear to work because of double processing the link clicked event, which caused it to expand and then immediately collapse. --- static/js/Wiki.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 69f4b7e..1e2077a 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -2820,6 +2820,7 @@ Note_tree.prototype.display_child_links = function ( result, link, children_area if ( !expander || link.parentNode.parentNode != expander.parentNode ) return; swapElementClass( expander, "tree_expander_empty", "tree_expander" ); var note_id = parse_query( link )[ "note_id" ]; + disconnectAll( expander ); connect_expander( expander, note_id ); }