witten
/
luminotes
Archived
1
0
Fork 0

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 <tbody> to the table and appending to that
instead of the table itself.
This commit is contained in:
Dan Helfman 2008-04-16 01:05:12 +00:00
parent a282c8d1e1
commit 4398d07d4c
2 changed files with 7 additions and 4 deletions

View File

@ -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,

View File

@ -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",
)