Commit 1706eee0 authored by flothoni's avatar flothoni

graph.js; fix code quality (jslint)

Lik to #4370
parent 372b4d89
Pipeline #154195 failed with stages
in 11 minutes and 11 seconds
...@@ -363,12 +363,14 @@ Graph.prototype = { ...@@ -363,12 +363,14 @@ Graph.prototype = {
var tooltip = this.getTooltip(i, false, false) var tooltip = this.getTooltip(i, false, false)
list_content.title = tooltip list_content.title = tooltip
/* jshint ignore:start */
list_content.onmouseover = function() { list_content.onmouseover = function() {
self.graphListFocus(this.dataset.time) self.graphListFocus(this.dataset.time)
}; };
list_content.onmouseout = function() { list_content.onmouseout = function() {
self.graphListFocus(undefined) self.graphListFocus(undefined)
}; };
/* jshint ignore:end */
table.appendChild(list_content) table.appendChild(list_content)
} }
...@@ -1629,10 +1631,11 @@ Graph.prototype = { ...@@ -1629,10 +1631,11 @@ Graph.prototype = {
}, },
getTooltip: function(time, htmlFormat, includeName){ getTooltip: function(time, htmlFormat, includeName){
var breakChar
if (htmlFormat){ if (htmlFormat){
var breakChar = "<br/>" breakChar = "<br/>"
} else { } else {
var breakChar = String.fromCharCode(13) breakChar = String.fromCharCode(13)
} }
var tooltip = ""; var tooltip = "";
tooltip += this.m.getStrTime(time, "names") tooltip += this.m.getStrTime(time, "names")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment