summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/repos.html
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-16 13:57:31 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-09-16 13:57:31 +0200
commit053519beae0cb380864773a0cca6dd3d009a5899 (patch)
tree49b8450f9c9ce579ca38589698c802cb03aec9ea /ogcp/templates/repos.html
parent2ca2215ed6653dc7bf2cfaf320fee811b376ece8 (diff)
templates: save checkbox state in images and repos
Store the checked checkboxes of the sidebar in Images and Repos. Autoselect the correct server after updating the checkboxes.
Diffstat (limited to 'ogcp/templates/repos.html')
-rw-r--r--ogcp/templates/repos.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/ogcp/templates/repos.html b/ogcp/templates/repos.html
index 9f15391..2f5fe1b 100644
--- a/ogcp/templates/repos.html
+++ b/ogcp/templates/repos.html
@@ -27,6 +27,7 @@
{% for r in repos_list %}
<li class="nav-item">
<input class="form-check-input" type="checkbox" form="reposForm"
+ id="repo{{ r["id"] }}"
data-server="{{server_ip_port}}"
value="{{ r["id"] }}"
name="{{ r["name"]~_~r["id"] }}" />
@@ -43,7 +44,8 @@
document.addEventListener('readystatechange', () => {
if (document.readyState === 'complete') {
keepTreeState('#repos-list')
- checkRepoServer()
+ keepSelectedClients('repos');
+ checkOnChange('repos-server');
}
});
</script>