diff options
author | Wojtek Kosior <wk@koszkonutek-tmp.pl.eu.org> | 2021-05-12 17:41:08 +0200 |
---|---|---|
committer | Wojtek Kosior <wk@koszkonutek-tmp.pl.eu.org> | 2021-05-12 17:41:08 +0200 |
commit | f6a7f24e61a78f197250875ac9833f497a455d20 (patch) | |
tree | 9549ac201aeb8f8ed1cfef6270bae9c459476577 /html | |
parent | 55fb3e4bd833f042a82657cc75e7e4c657402f9e (diff) | |
download | browser-extension-f6a7f24e61a78f197250875ac9833f497a455d20.tar.gz browser-extension-f6a7f24e61a78f197250875ac9833f497a455d20.zip |
rename "bundles" to "bags"
Diffstat (limited to 'html')
-rw-r--r-- | html/options.html | 32 | ||||
-rw-r--r-- | html/options_main.js | 16 |
2 files changed, 24 insertions, 24 deletions
diff --git a/html/options.html b/html/options.html index 0bce6fc..cb39090 100644 --- a/html/options.html +++ b/html/options.html @@ -30,13 +30,13 @@ /* tabbed view */ #show_pages:not(:checked) ~ #pages, - #show_bundles:not(:checked) ~ #bundles, + #show_bags:not(:checked) ~ #bags, #show_scripts:not(:checked) ~ #scripts { display: none; } #show_pages:checked ~ #pages_lbl, - #show_bundles:checked ~ #bundles_lbl, + #show_bags:checked ~ #bags_lbl, #show_scripts:checked ~ #scripts_lbl { border-left: 2px solid green; border-right: 2px solid green; @@ -89,12 +89,12 @@ </div> <input type="radio" name="tabs" id="show_pages" checked></input> - <input type="radio" name="tabs" id="show_bundles"></input> + <input type="radio" name="tabs" id="show_bags"></input> <input type="radio" name="tabs" id="show_scripts"></input> <label for="show_pages" id="pages_lbl" class="tab_head"> Pages </label> - <label for="show_bundles" id="bundles_lbl" - class="tab_head"> Bundles </label> + <label for="show_bags" id="bags_lbl" + class="tab_head"> Bags </label> <label for="show_scripts" id="scripts_lbl" class="tab_head"> Scripts </label> @@ -119,23 +119,23 @@ <button id="add_page_but" type="button"> Add page </button> </div> - <div id="bundles"> - <ul id="bundles_ul"> - <li id="work_bundle_li" class="hide"> - <label for="bundle_name_field"> Name: </label> - <input id="bundle_name_field"></input> - <ul id="bundle_components_ul"> - <li id="empty_bundle_component_li" class="hide"></li> + <div id="bags"> + <ul id="bags_ul"> + <li id="work_bag_li" class="hide"> + <label for="bag_name_field"> Name: </label> + <input id="bag_name_field"></input> + <ul id="bag_components_ul"> + <li id="empty_bag_component_li" class="hide"></li> </ul> - <button id="bundle_select_components_but"> + <button id="bag_select_components_but"> Add scripts </button> <br/> - <button id="bundle_save_but"> Save </button> - <button id="bundle_discard_but"> Cancel </button> + <button id="bag_save_but"> Save </button> + <button id="bag_discard_but"> Cancel </button> </li> </ul> - <button id="add_bundle_but" type="button"> Add bundle </button> + <button id="add_bag_but" type="button"> Add bag </button> </div> <div id="scripts"> diff --git a/html/options_main.js b/html/options_main.js index ca591d5..104f771 100644 --- a/html/options_main.js +++ b/html/options_main.js @@ -92,7 +92,7 @@ /* * Used to construct and update components list of edited - * bundle as well as edited page. + * bag as well as edited page. */ function add_components(ul, components) { @@ -114,7 +114,7 @@ components_ul.appendChild(ul.work_empty_component_li); } - /* Used to reset edited bundle as well as edited page. */ + /* Used to reset edited bag as well as edited page. */ function generic_reset_work_li(ul, item, components) { if (item === undefined) { @@ -138,7 +138,7 @@ generic_reset_work_li(ul, item, settings?.components); } - /* Used to get edited bundle as well as edited page data for saving. */ + /* Used to get edited bag as well as edited page data for saving. */ function generic_work_li_data(ul) { let components_ul = ul.work_name_input.nextElementSibling; @@ -305,11 +305,11 @@ state : UL_STATE.IDLE, edited_item : undefined, }, - [TYPE_PREFIX.BUNDLE] : { - ul : by_id("bundles_ul"), - work_li : by_id("work_bundle_li"), - work_name_input : by_id("bundle_name_field"), - work_empty_component_li : by_id("empty_bundle_component_li"), + [TYPE_PREFIX.BAG] : { + ul : by_id("bags_ul"), + work_li : by_id("work_bag_li"), + work_name_input : by_id("bag_name_field"), + work_empty_component_li : by_id("empty_bag_component_li"), reset_work_li : generic_reset_work_li, get_work_li_data : generic_work_li_data, state : UL_STATE.IDLE, |