comparison rhodecode/templates/changelog/changelog.html @ 1872:6300364efc35 beta

changelog: expand clipped messages on click (graph part todo)
author Aras Pranckevicius <aras@unity3d.com>
date Mon, 09 Jan 2012 09:01:37 +0200
parents 2a159aa3ed2d
children 303ef179f750
comparison
equal deleted inserted replaced
1871:bd7e95937acd 1872:6300364efc35
153 window.location = url_main; 153 window.location = url_main;
154 } 154 }
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 function set_canvas(heads) { 172 function set_canvas(heads) {
159 var c = document.getElementById('graph_nodes'); 173 var c = document.getElementById('graph_nodes');
160 var t = document.getElementById('graph_content'); 174 var t = document.getElementById('graph_content');
161 canvas = document.getElementById('graph_canvas'); 175 canvas = document.getElementById('graph_canvas');
162 var div_h = t.clientHeight; 176 var div_h = t.clientHeight;