Show More
@@ -60,9 +60,9 function Graph() { | |||||
60 | // provides the multiplier that should be applied to |
|
60 | // provides the multiplier that should be applied to | |
61 | // the foreground colours. |
|
61 | // the foreground colours. | |
62 | var s; |
|
62 | var s; | |
63 | if(typeof color == "string") { |
|
63 | if(typeof color === "string") { | |
64 | s = "#" + color; |
|
64 | s = "#" + color; | |
65 | } else { //typeof color == "number" |
|
65 | } else { //typeof color === "number" | |
66 | color %= colors.length; |
|
66 | color %= colors.length; | |
67 | var red = (colors[color][0] * fg) || bg; |
|
67 | var red = (colors[color][0] * fg) || bg; | |
68 | var green = (colors[color][1] * fg) || bg; |
|
68 | var green = (colors[color][1] * fg) || bg; | |
@@ -124,7 +124,7 function Graph() { | |||||
124 | this.columns += 1; |
|
124 | this.columns += 1; | |
125 | } |
|
125 | } | |
126 |
|
126 | |||
127 | if (start == this.columns && start > end) { |
|
127 | if (start === this.columns && start > end) { | |
128 | fold = true; |
|
128 | fold = true; | |
129 | } |
|
129 | } | |
130 |
|
130 | |||
@@ -229,7 +229,7 function process_dates(parentSelector){ | |||||
229 | for (var unit in scales){ |
|
229 | for (var unit in scales){ | |
230 | var s = scales[unit]; |
|
230 | var s = scales[unit]; | |
231 | var n = Math.floor(delta / s); |
|
231 | var n = Math.floor(delta / s); | |
232 | if ((n >= 2) || (s == 1)){ |
|
232 | if ((n >= 2) || (s === 1)){ | |
233 | if (future){ |
|
233 | if (future){ | |
234 | return format(n, unit) + ' from now'; |
|
234 | return format(n, unit) + ' from now'; | |
235 | } else { |
|
235 | } else { | |
@@ -257,7 +257,7 function process_dates(parentSelector){ | |||||
257 |
|
257 | |||
258 | function toggleDiffstat() { |
|
258 | function toggleDiffstat() { | |
259 | var curdetails = document.getElementById('diffstatdetails').style.display; |
|
259 | var curdetails = document.getElementById('diffstatdetails').style.display; | |
260 | var curexpand = curdetails == 'none' ? 'inline' : 'none'; |
|
260 | var curexpand = curdetails === 'none' ? 'inline' : 'none'; | |
261 | document.getElementById('diffstatdetails').style.display = curexpand; |
|
261 | document.getElementById('diffstatdetails').style.display = curexpand; | |
262 | document.getElementById('diffstatexpand').style.display = curdetails; |
|
262 | document.getElementById('diffstatexpand').style.display = curdetails; | |
263 | } |
|
263 | } | |
@@ -380,7 +380,7 function ajaxScrollInit(urlFormat, | |||||
380 | appendFormatHTML(container, messageFormat, message); |
|
380 | appendFormatHTML(container, messageFormat, message); | |
381 | }, |
|
381 | }, | |
382 | function onsuccess(htmlText) { |
|
382 | function onsuccess(htmlText) { | |
383 | if (mode == 'graph') { |
|
383 | if (mode === 'graph') { | |
384 | var sizes = htmlText.match(/^\s*<canvas id="graph" width="(\d+)" height="(\d+)"><\/canvas>$/m); |
|
384 | var sizes = htmlText.match(/^\s*<canvas id="graph" width="(\d+)" height="(\d+)"><\/canvas>$/m); | |
385 | var addWidth = sizes[1]; |
|
385 | var addWidth = sizes[1]; | |
386 | var addHeight = sizes[2]; |
|
386 | var addHeight = sizes[2]; | |
@@ -457,7 +457,7 function renderDiffOptsForm() { | |||||
457 | window.location.search = urlParams.toString(); |
|
457 | window.location.search = urlParams.toString(); | |
458 | } |
|
458 | } | |
459 |
|
459 | |||
460 | var allChecked = form.getAttribute("data-ignorews") == "1"; |
|
460 | var allChecked = form.getAttribute("data-ignorews") === "1"; | |
461 |
|
461 | |||
462 | for (var i = 0; i < KEYS.length; i++) { |
|
462 | for (var i = 0; i < KEYS.length; i++) { | |
463 | var key = KEYS[i]; |
|
463 | var key = KEYS[i]; | |
@@ -468,10 +468,10 function renderDiffOptsForm() { | |||||
468 | } |
|
468 | } | |
469 |
|
469 | |||
470 | currentValue = form.getAttribute("data-" + key); |
|
470 | currentValue = form.getAttribute("data-" + key); | |
471 | checkbox.checked = currentValue != "0"; |
|
471 | checkbox.checked = currentValue !== "0"; | |
472 |
|
472 | |||
473 | // ignorews implies ignorewsamount and ignorewseol. |
|
473 | // ignorews implies ignorewsamount and ignorewseol. | |
474 | if (allChecked && (key == "ignorewsamount" || key == "ignorewseol")) { |
|
474 | if (allChecked && (key === "ignorewsamount" || key === "ignorewseol")) { | |
475 | checkbox.checked = true; |
|
475 | checkbox.checked = true; | |
476 | checkbox.disabled = true; |
|
476 | checkbox.disabled = true; | |
477 | } |
|
477 | } |
General Comments 0
You need to be logged in to leave comments.
Login now