mercurial/templates/static/mercurial.js
changeset 19780 659bc603bd0d
parent 19760 2ac4e89ad769
child 19781 74564c90026b
--- a/mercurial/templates/static/mercurial.js	Sat Sep 21 21:33:29 2013 +0900
+++ b/mercurial/templates/static/mercurial.js	Fri Sep 06 13:30:59 2013 +0400
@@ -36,6 +36,14 @@
 	this.columns = 0;
 	this.revlink = '';
 
+	this.reset = function() {
+		this.bg = [0, 4];
+		this.cell = [2, 0];
+		this.columns = 0;
+		document.getElementById('nodebgs').innerHTML = '';
+		document.getElementById('graphnodes').innerHTML = '';
+	}
+
 	this.scale = function(height) {
 		this.bg_height = height;
 		this.box_size = Math.floor(this.bg_height / 1.2);