Show More
@@ -155,6 +155,20 b'' | |||
|
155 | 155 | |
|
156 | 156 | }); |
|
157 | 157 | |
|
158 | // Expand long messages on click | |
|
159 | var messages = YUD.getElementsByClassName('message'); | |
|
160 | for (idx in messages) { | |
|
161 | var msg = messages[idx]; | |
|
162 | // would the message be clipped? | |
|
163 | if (msg.scrollHeight > msg.parentNode.parentNode.offsetHeight) | |
|
164 | { | |
|
165 | msg.style.cursor = 's-resize'; | |
|
166 | msg.onclick = function() { | |
|
167 | this.parentNode.parentNode.style.height = 'auto'; | |
|
168 | } | |
|
169 | } | |
|
170 | } | |
|
171 | ||
|
158 | 172 | function set_canvas(heads) { |
|
159 | 173 | var c = document.getElementById('graph_nodes'); |
|
160 | 174 | var t = document.getElementById('graph_content'); |
General Comments 0
You need to be logged in to leave comments.
Login now