Commit 8a555cce by Roman Shevchuk

For row numbering added "th" tag as a possible first cell in line. Fixes #4

parent e73d5070
......@@ -141,16 +141,17 @@ var salesforceuiimprover_scripts = {
showLineNumbersInTables: function () {
var $bodyCell = $('#bodyCell');
$bodyCell.find('table.list > thead, table.list > tbody').children('tr.headerRow').children('th:first-child').each(function () {
$(this).attr('line-number', '#');
});
$bodyCell.find('table.list > tbody').each(function () {
var index = 1;
$(this).children('tr:not(.headerRow)').children('td:first-child').each(function () {
$(this).children('tr:not(.headerRow)').children('*:first-child').each(function () {
$(this).attr('line-number', index);
index++;
});
});
$bodyCell.find('table.list > thead, table.list > tbody').children('tr.headerRow').children('th:first-child').each(function () {
$(this).attr('line-number', '#');
});
}
};
\ No newline at end of file
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 sign in to comment