Mercurial > kallithea
changeset 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 | bd7e95937acd |
children | cc5dc31859d4 |
files | rhodecode/templates/changelog/changelog.html |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/templates/changelog/changelog.html Mon Jan 09 07:48:45 2012 +0200 +++ b/rhodecode/templates/changelog/changelog.html Mon Jan 09 09:01:37 2012 +0200 @@ -155,6 +155,20 @@ }); + // Expand long messages on click + var messages = YUD.getElementsByClassName('message'); + for (idx in messages) { + var msg = messages[idx]; + // would the message be clipped? + if (msg.scrollHeight > msg.parentNode.parentNode.offsetHeight) + { + msg.style.cursor = 's-resize'; + msg.onclick = function() { + this.parentNode.parentNode.style.height = 'auto'; + } + } + } + function set_canvas(heads) { var c = document.getElementById('graph_nodes'); var t = document.getElementById('graph_content');