Changeset - 1fa58ca0a77e
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 15 years ago 2010-07-28 01:52:12
marcin@python-works.com
fixed plural messages about commits in graph
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
pylons_app/templates/summary/summary.html
Show inline comments
 
@@ -214,13 +214,17 @@ E.onDOMReady(function(e){
 
		                        if (!item.series.label){
 
		                            item.series.label = 'commits';
 
			                    }
 
		                        var d = new Date(x*1000);
 
		                        var fd = d.getFullYear()+'-'+(d.getMonth()+1)+'-'+d.getDate();
 
		                        var nr_commits = parseInt(y);
 
		                        showTooltip(item.pageX, item.pageY, item.series.label + " on " + fd + ": " + nr_commits+" commits");
 
		                        var suffix = '';
 
		                        if(nr_commits > 1){
 
									var suffix = 's';		
 
				                }
 
		                        showTooltip(item.pageX, item.pageY, item.series.label + " on " + fd + ": " + nr_commits+" commit" + suffix);
 
		                    }
 
		                }
 
		                else {
 
		                	  var tooltip = YAHOO.util.Dom.get("tooltip");
 
		                	  
 
					          if(tooltip) {
0 comments (0 inline, 0 general)