Mercurial > public > mercurial-scm > hg
diff mercurial/templates/static/mercurial.js @ 14571:17c0cb1045e5
paper, coal: display diffstat on the changeset page
Displayed in a row of the changeset summary table, underneath the list of
files. When the page is loaded, only the diff summary is displayed. The full
diffstat is only displayed when the [+] link is selected.
author | Steven Brown <StevenGBrown@gmail.com> |
---|---|
date | Sat, 11 Jun 2011 21:24:50 +0800 |
parents | b24e5a708fad |
children | 2e54387976d4 |
line wrap: on
line diff
--- a/mercurial/templates/static/mercurial.js Sat Jun 11 21:11:43 2011 +0800 +++ b/mercurial/templates/static/mercurial.js Sat Jun 11 21:24:50 2011 +0800 @@ -2,6 +2,7 @@ // // Rendering of branch DAGs on the client side // Display of elapsed time +// Show or hide diffstat // // Copyright 2008 Dirkjan Ochtman <dirkjan AT ochtman DOT nl> // Copyright 2006 Alexander Schremmer <alex AT alexanderweb DOT de> @@ -218,3 +219,13 @@ } } })(document, RegExp, Math, isNaN, Date, false, true) + +function showDiffstat() { + document.getElementById('diffstatdetails').style.display = 'inline'; + document.getElementById('diffstatexpand').style.display = 'none'; +} + +function hideDiffstat() { + document.getElementById('diffstatdetails').style.display = 'none'; + document.getElementById('diffstatexpand').style.display = 'inline'; +}