Skip to content

Commit 36014f1

Browse files
authored
Click-to-define only on Harvest Source Config Table Labels (#428)
makes it so only the labels are clickable in the harvest source config
1 parent dd1e926 commit 36014f1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/static/js/glossary.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@ var Glossary = require("glossary-panel");
22
var terms = require("../data/glossary.json");
33

44
var body = document.querySelectorAll(
5-
".harvest-source-config-properties td, .harvest-source-config-summary td, .harvest-job-config-properties td, .job-data .section h2"
5+
".harvest-source-config-properties tr td:first-child, .harvest-source-config-summary td, .harvest-job-config-properties td, .job-data .section h2"
66
);
7-
87
if (body) {
98
Object.keys(terms).forEach(function (key) {
109
var term = terms[key].term;
1110
var re = new RegExp("(\\b" + term + "\\b)(?![^<]*>|[^<>]*</)", "i");
1211

1312
for (var i = 0; i < body.length; i++) {
1413
var match = re.exec(body[i].innerHTML);
15-
1614
if (match) {
1715
body[i].innerHTML = body[i].innerHTML.replace(
1816
re,
@@ -23,7 +21,6 @@ if (body) {
2321
}
2422
});
2523
}
26-
2724
function decorator(glossary) {
2825
var accordion = glossary.accordion;
2926

0 commit comments

Comments
 (0)