Show More
@@ -328,14 +328,15 b' function process_dates(parentSelector){' | |||||
328 | } |
|
328 | } | |
329 | } |
|
329 | } | |
330 |
|
330 | |||
331 | function toggleDiffstat() { |
|
331 | function toggleDiffstat(event) { | |
332 | var curdetails = document.getElementById('diffstatdetails').style.display; |
|
332 | var curdetails = document.getElementById('diffstatdetails').style.display; | |
333 | var curexpand = curdetails === 'none' ? 'inline' : 'none'; |
|
333 | var curexpand = curdetails === 'none' ? 'inline' : 'none'; | |
334 | document.getElementById('diffstatdetails').style.display = curexpand; |
|
334 | document.getElementById('diffstatdetails').style.display = curexpand; | |
335 | document.getElementById('diffstatexpand').style.display = curdetails; |
|
335 | document.getElementById('diffstatexpand').style.display = curdetails; | |
|
336 | event.preventDefault(); | |||
336 | } |
|
337 | } | |
337 |
|
338 | |||
338 | function toggleLinewrap() { |
|
339 | function toggleLinewrap(event) { | |
339 | function getLinewrap() { |
|
340 | function getLinewrap() { | |
340 | var nodes = document.getElementsByClassName('sourcelines'); |
|
341 | var nodes = document.getElementsByClassName('sourcelines'); | |
341 | // if there are no such nodes, error is thrown here |
|
342 | // if there are no such nodes, error is thrown here | |
@@ -360,6 +361,7 b' function toggleLinewrap() {' | |||||
360 | } |
|
361 | } | |
361 |
|
362 | |||
362 | setLinewrap(!getLinewrap()); |
|
363 | setLinewrap(!getLinewrap()); | |
|
364 | event.preventDefault(); | |||
363 | } |
|
365 | } | |
364 |
|
366 | |||
365 | function format(str, replacements) { |
|
367 | function format(str, replacements) { |
General Comments 0
You need to be logged in to leave comments.
Login now