Skip to content

Commit aa7d4fe

Browse files
committed
rm list styling, comfort with jsTree (might result unexpected behavior with other plugins/templates)
1 parent f1e4ce1 commit aa7d4fe

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

inc/html.php

+4-6
Original file line numberDiff line numberDiff line change
@@ -867,11 +867,11 @@ function html_list_index($item){
867867
*/
868868
function html_li_index($item){
869869
if($item['type'] == "f"){
870-
return '<li class="level'.$item['level'].'">';
870+
return '<li id="node_'.$item['id'].'" class="level'.$item['level'].'">';
871871
}elseif($item['open']){
872-
return '<li class="open">';
872+
return '<li id="node_'.$item['id'].'" class="open">';
873873
}else{
874-
return '<li class="closed">';
874+
return '<li id="node_'.$item['id'].'" class="closed">';
875875
}
876876
}
877877

@@ -881,7 +881,7 @@ function html_li_index($item){
881881
* @author Andreas Gohr <[email protected]>
882882
*/
883883
function html_li_default($item){
884-
return '<li class="level'.$item['level'].'">';
884+
return '<li id="node_'.$item['id'].'" class="level'.$item['level'].'">';
885885
}
886886

887887
/**
@@ -936,10 +936,8 @@ function html_buildlist($data,$class,$func,$lifunc='html_li_default',$forcewrapp
936936

937937
//print item
938938
$ret .= call_user_func($lifunc,$item);
939-
$ret .= '<div class="li">';
940939

941940
$ret .= call_user_func($func,$item);
942-
$ret .= '</div>';
943941
}
944942

945943
//close remaining items and lists

0 commit comments

Comments
 (0)