From 4398d07d4cf17fff1642176979d308008d7a3302 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 16 Apr 2008 01:05:12 +0000 Subject: [PATCH] Bug fix: Toggling a note's startup flag didn't add a link to the the note tree in IE6. Apparently Internet Explorer doesn't support appending rows directly to tables. Fixed by adding a to the table and appending to that instead of the table itself. --- static/js/Wiki.js | 2 +- view/Note_tree_area.py | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 1e2077a..5fac32d 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -2636,7 +2636,7 @@ Note_tree.prototype.add_root_link = function ( editor ) { "class": "note_tree_link" }, editor.title || "untitled note" ); - appendChildNodes( "note_tree_root_table", createDOM( + appendChildNodes( "note_tree_root_table_body", createDOM( "tr", { "id": "note_tree_item_" + editor.id, "class": "note_tree_item" }, expander, diff --git a/view/Note_tree_area.py b/view/Note_tree_area.py index 56bba11..08df81d 100644 --- a/view/Note_tree_area.py +++ b/view/Note_tree_area.py @@ -1,5 +1,5 @@ import re -from Tags import Div, Span, H4, A, Table, Tr, Td +from Tags import Div, Span, H4, A, Table, Tbody, Tr, Td class Note_tree_area( Div ): @@ -82,8 +82,11 @@ class Note_tree_area( Div ): @staticmethod def make_tree( items, other_node = None, tree_id = None ): return Table( - items, - other_node, + Tbody( + items, + other_node, + id = tree_id and tree_id + "_body" or None, + ), id = tree_id or None, class_ = u"note_tree_table", )