Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
14570:9f908ef5a595 | 14571:17c0cb1045e5 |
---|---|
1 // mercurial.js - JavaScript utility functions | 1 // mercurial.js - JavaScript utility functions |
2 // | 2 // |
3 // Rendering of branch DAGs on the client side | 3 // Rendering of branch DAGs on the client side |
4 // Display of elapsed time | 4 // Display of elapsed time |
5 // Show or hide diffstat | |
5 // | 6 // |
6 // Copyright 2008 Dirkjan Ochtman <dirkjan AT ochtman DOT nl> | 7 // Copyright 2008 Dirkjan Ochtman <dirkjan AT ochtman DOT nl> |
7 // Copyright 2006 Alexander Schremmer <alex AT alexanderweb DOT de> | 8 // Copyright 2006 Alexander Schremmer <alex AT alexanderweb DOT de> |
8 // | 9 // |
9 // derived from code written by Scott James Remnant <scott@ubuntu.com> | 10 // derived from code written by Scott James Remnant <scott@ubuntu.com> |
216 } | 217 } |
217 } | 218 } |
218 } | 219 } |
219 } | 220 } |
220 })(document, RegExp, Math, isNaN, Date, false, true) | 221 })(document, RegExp, Math, isNaN, Date, false, true) |
222 | |
223 function showDiffstat() { | |
224 document.getElementById('diffstatdetails').style.display = 'inline'; | |
225 document.getElementById('diffstatexpand').style.display = 'none'; | |
226 } | |
227 | |
228 function hideDiffstat() { | |
229 document.getElementById('diffstatdetails').style.display = 'none'; | |
230 document.getElementById('diffstatexpand').style.display = 'inline'; | |
231 } |