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