Commit 0ce0bd7d authored by Thonier Florian's avatar Thonier Florian
Browse files

tools.js; row1 function; add condition to be more robust

parent cea4d80f
Pipeline #340934 passed with stages
in 45 minutes and 37 seconds
......@@ -948,7 +948,7 @@ var header = function(content, title, time_length) {
return "<tr id='modal_header_"+title+"'><td class='header' colspan='" + (time_length + 1) + "'>" + content + "</td></tr>" ;
}
var row_1 = function(item, content, title, time_length) {
title = (title == undefined) ? clean_title(item) : clean_title(title)
title = (title != undefined) ? clean_title(title) : ( (item == undefined) ? "": clean_title(item) )
return "<tr id='modal_line_"+title+"'><td id='modal_line_title_"+title+"'>" + item + "</td><td colspan='" + time_length + "' id='modal_line_value_"+title+"'>" + content + "</td></tr>" ;
}
var row_from_list = function(item, content, title, time_length) {
......
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