Changeset - d832f2bbb466
[Not reviewed]
beta
0 1 0
Aras Pranckevicius - 14 years ago 2012-01-09 08:33:36
aras@unity3d.com
Backed out changeset 6300364efc35 (upstream did same changes)
1 file changed with 0 insertions and 14 deletions:
0 comments (0 inline, 0 general)
rhodecode/templates/changelog/changelog.html
Show inline comments
 
@@ -146,38 +146,24 @@ ${c.repo_name} ${_('Changelog')} - ${c.r
 
                    	console.log(selected_branch);
 
                    	var url_main = "${h.url('changelog_home',repo_name=c.repo_name)}";
 
                    	var url = "${h.url('changelog_home',repo_name=c.repo_name,branch='__BRANCH__')}";
 
                    	var url = url.replace('__BRANCH__',selected_branch);
 
                    	if(selected_branch != ''){
 
                    		window.location = url;
 
                    	}else{
 
                    		window.location = url_main;
 
                    	}
 
                        
 
                    });
 
                    
 
                    // 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');
 
						canvas = document.getElementById('graph_canvas');
 
						var div_h = t.clientHeight;
 
						c.style.height=div_h+'px';
 
						canvas.setAttribute('height',div_h);
 
						c.style.height=max_w+'px';
 
						canvas.setAttribute('width',max_w);
 
					};
 
					var heads = 1;
 
					var max_heads = 0;
0 comments (0 inline, 0 general)