Revision 826b4fd8
Added by koszko about 2 years ago
html/display-panel.js | ||
---|---|---|
22 | 22 |
* IMPORT open_in_settings |
23 | 23 |
* IMPORT each_url_pattern |
24 | 24 |
* IMPORT by_id |
25 |
* IMPORT get_template |
|
25 | 26 |
* IMPORT clone_template |
26 | 27 |
* IMPORTS_END |
27 | 28 |
*/ |
... | ... | |
73 | 74 |
} |
74 | 75 |
|
75 | 76 |
const possible_patterns_ul = by_id("possible_patterns"); |
76 |
const pattern_li_template = by_id("pattern_li_template");
|
|
77 |
const pattern_li_template = get_template("pattern_li");
|
|
77 | 78 |
pattern_li_template.removeAttribute("id"); |
78 | 79 |
const known_patterns = new Map(); |
79 | 80 |
|
... | ... | |
487 | 488 |
set_appended(result_item, ul); |
488 | 489 |
|
489 | 490 |
for (const match of result) { |
490 |
const entry_object = clone_template("query_match_li_template");
|
|
491 |
const entry_object = clone_template("query_match_li"); |
|
491 | 492 |
|
492 | 493 |
entry_object.pattern.textContent = match.pattern; |
493 | 494 |
|
Also available in: Unified diff
start using `' tag