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:
parent
a282c8d1e1
commit
4398d07d4c
|
@ -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,
|
||||
|
|
|
@ -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(
|
||||
Tbody(
|
||||
items,
|
||||
other_node,
|
||||
id = tree_id and tree_id + "_body" or None,
|
||||
),
|
||||
id = tree_id or None,
|
||||
class_ = u"note_tree_table",
|
||||
)
|
||||
|
|
Reference in New Issue
Block a user