Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
Roman Shevchuk
salesforceuiimprover
Commits
8a555cce
Commit
8a555cce
authored
Jun 24, 2016
by
Roman Shevchuk
Browse files
For row numbering added "th" tag as a possible first cell in line. Fixes #4
parent
e73d5070
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/scripts.js
View file @
8a555cce
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment