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