From 2359760abb0ff501aee2c0609146542b9ae1655b Mon Sep 17 00:00:00 2001 From: Juergen Edelbluth Date: Mon, 28 Dec 2015 19:46:45 +0100 Subject: [PATCH] Fixed Timeline in Timing Panel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Like in Pull Request #793, the Timing Panel produces an error when used in XHTML documents. This time, the entity   is undefined for XHTML documents. It was replaced by   – which is the numeric pendant. Now the panel works for all kind of documents. --- .../static/debug_toolbar/js/toolbar.timer.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/debug_toolbar/static/debug_toolbar/js/toolbar.timer.js b/debug_toolbar/static/debug_toolbar/js/toolbar.timer.js index 0c0f4a5bb..b9bf3b41a 100644 --- a/debug_toolbar/static/debug_toolbar/js/toolbar.timer.js +++ b/debug_toolbar/static/debug_toolbar/js/toolbar.timer.js @@ -23,16 +23,16 @@ var $row = $(''); if (endStat) { // Render a start through end bar - $row.html('' + stat.replace('Start', '') + '' + - '
 
' + + $row.html('' + stat.replace('Start', '') + '' + + '
 
' + '' + (perf.timing[stat] - timingOffset) + ' (+' + (perf.timing[endStat] - perf.timing[stat]) + ')'); $row.find('strong').css({width: getCSSWidth(stat, endStat)}); } else { // Render a point in time - $row.html('' + stat + '' + - '
 
' + - '' + (perf.timing[stat] - timingOffset) + ''); - $row.find('strong').css({width: 2}); + $row.html('' + stat + '' + + '
 
' + + '' + (perf.timing[stat] - timingOffset) + ''); + $row.find('strong').css({width: 2}); } $row.find('djDebugLineChart').css({left: getLeft(stat) + '%'}); $('#djDebugBrowserTimingTableBody').append($row);