36 |
} |
} |
37 |
|
|
38 |
function default_display() { |
function default_display() { |
39 |
for (var i = 0; i <= changed_display_pos; i++) { |
if (changed_display_pos == 0) return; |
40 |
|
|
41 |
|
for (var i = 0; i < changed_display_pos; i++) { |
42 |
toggle_display( changed_display_ids[i], 1 ); |
toggle_display( changed_display_ids[i], 1 ); |
43 |
} |
} |
44 |
changed_display_pos = 0; |
changed_display_pos = 0; |
94 |
show_display(show); |
show_display(show); |
95 |
hide_display(hide); |
hide_display(hide); |
96 |
} |
} |
97 |
|
|
98 |
|
function outline_display(name) { |
99 |
|
|
100 |
|
var el = element_id(name); |
101 |
|
|
102 |
|
if (el) { |
103 |
|
el.style.background = "#e0e0e0"; |
104 |
|
el.style.border = "1px dashed #c0c0c0"; |
105 |
|
|
106 |
|
if (el.style.display=='none') toggle_display(el.id); |
107 |
|
|
108 |
|
// recursivly show elements to root |
109 |
|
while (el.parentNode) { |
110 |
|
var el=el.parentNode; |
111 |
|
if (el.style && el.style.display=='none') toggle_display(el.id); |
112 |
|
} |
113 |
|
} |
114 |
|
} |