dropped msg and paths when returning history as json.
changed the commits-per-month graph to show every 3 x-labeas only
This commit is contained in:
		| @ -709,6 +709,12 @@ class Code extends Controller | ||||
| 		else | ||||
| 		{ | ||||
| 			$history = $file['history']; | ||||
| 			$count = count($history); | ||||
| 			for ($i = 0; $i < $count; $i++) | ||||
| 			{ | ||||
| 				unset ($history[$i]['msg']); | ||||
| 				unset ($history[$i]['paths']); | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		print codepot_json_encode ($history); | ||||
|  | ||||
| @ -124,6 +124,8 @@ function show_commits_per_month_graph(response) | ||||
| 	{ | ||||
| 		commits_per_month_values.push (commits_per_month[commits_per_month_keys[i]]); | ||||
| 		committers_per_month_values.push (committers_per_month[commits_per_month_keys[i]]); | ||||
|  | ||||
| 		if (commits_per_month_keys.length > 12 && (i % 3)) commits_per_month_keys[i] = ''; | ||||
| 	} | ||||
|  | ||||
| 	var commits_per_month_data = { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user