Add blank default to copy container selector

This commit is contained in:
Aaron Kollasch 2022-04-07 02:42:12 -04:00
parent 581dab4ef5
commit be840e42cb
No known key found for this signature in database
GPG Key ID: F813CAE853E39883
2 changed files with 3 additions and 1 deletions

View File

@ -95,6 +95,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
<div class="per-site-buttons" id="per-site-buttons">
<label for="copy-container" id="copy-container-label">Copy permissions from container:</label>
<select name="copy-container" id="copy-container">
<option value=blank></option>
<option value="default">Default</option>
</select>
<div style="inline-size:0;margin-inline:.5em;border:1px solid #888"></div>

View File

@ -252,6 +252,7 @@ document.querySelector("#version").textContent = _("Version",
sitesUI.policy = currentPolicy;
sitesUI.render(currentPolicy.sites);
}
containerCopy.value = "blank";
}
containerCopy.onchange = copyContainer;
@ -272,7 +273,7 @@ document.querySelector("#version").textContent = _("Version",
}
containerSelect.innerHTML = container_options;
containerSelect.value = cookieStoreId;
containerCopy.innerHTML = container_options;
containerCopy.innerHTML = "<option value=blank></option>" + container_options;
}
containerSelect.onfocus = updateContainerOptions;
containerCopy.onfocus = updateContainerOptions;