Skip to content

Commit 2359760

Browse files
committed
Fixed Timeline in Timing Panel
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.
1 parent 8ccf09d commit 2359760

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

debug_toolbar/static/debug_toolbar/js/toolbar.timer.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@
2323
var $row = $('<tr class="' + ((rowCount % 2) ? 'djDebugOdd' : 'djDebugEven') + '"></tr>');
2424
if (endStat) {
2525
// Render a start through end bar
26-
$row.html('<td>' + stat.replace('Start', '') + '</td>' +
27-
'<td class="timeline"><div class="djDebugTimeline"><div class="djDebugLineChart"><strong>&nbsp;</strong></div></div></td>' +
26+
$row.html('<td>' + stat.replace('Start', '') + '</td>' +
27+
'<td class="timeline"><div class="djDebugTimeline"><div class="djDebugLineChart"><strong>&#160;</strong></div></div></td>' +
2828
'<td>' + (perf.timing[stat] - timingOffset) + ' (+' + (perf.timing[endStat] - perf.timing[stat]) + ')</td>');
2929
$row.find('strong').css({width: getCSSWidth(stat, endStat)});
3030
} else {
3131
// Render a point in time
32-
$row.html('<td>' + stat + '</td>' +
33-
'<td class="timeline"><div class="djDebugTimeline"><div class="djDebugLineChart"><strong>&nbsp;</strong></div></div></td>' +
34-
'<td>' + (perf.timing[stat] - timingOffset) + '</td>');
35-
$row.find('strong').css({width: 2});
32+
$row.html('<td>' + stat + '</td>' +
33+
'<td class="timeline"><div class="djDebugTimeline"><div class="djDebugLineChart"><strong>&#160;</strong></div></div></td>' +
34+
'<td>' + (perf.timing[stat] - timingOffset) + '</td>');
35+
$row.find('strong').css({width: 2});
3636
}
3737
$row.find('djDebugLineChart').css({left: getLeft(stat) + '%'});
3838
$('#djDebugBrowserTimingTableBody').append($row);

0 commit comments

Comments
 (0)