Project

General

Profile

« Previous | Next » 

Revision b7e2870f

Added by koszko about 2 years ago

show some settings of the current page in the popup

View differences:

html/options_main.js
12 12
 * IMPORT TYPE_NAME
13 13
 * IMPORT list_prefixes
14 14
 * IMPORT url_extract_target
15
 * IMPORT nice_name
15 16
 * IMPORTS_END
16 17
 */
17 18

  
......
21 22
    return document.getElementById(id);
22 23
}
23 24

  
24
function nice_name(prefix, name)
25
{
26
    return `${name} (${TYPE_NAME[prefix]})`;
27
}
28

  
29 25
const item_li_template = by_id("item_li_template");
30 26
const bag_component_li_template = by_id("bag_component_li_template");
31 27
const chbx_component_li_template = by_id("chbx_component_li_template");

Also available in: Unified diff