summaryrefslogtreecommitdiffstats
path: root/ogcp/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/templates')
-rw-r--r--ogcp/templates/base.html2
-rw-r--r--ogcp/templates/images.html6
-rw-r--r--ogcp/templates/repos.html4
3 files changed, 8 insertions, 4 deletions
diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html
index 9c6b3e1..f245c8d 100644
--- a/ogcp/templates/base.html
+++ b/ogcp/templates/base.html
@@ -111,7 +111,7 @@
<!-- ChartJS -->
<script src="{{ url_for('static', filename='AdminLTE/plugins/chart.js/Chart.min.js') }}"></script>
- <script src="{{ url_for('static', filename='js/ogcp.js') }}?v=20"></script>
+ <script src="{{ url_for('static', filename='js/ogcp.js') }}?v=21"></script>
<script>
// error messages
diff --git a/ogcp/templates/images.html b/ogcp/templates/images.html
index 34d8a87..7a16a0d 100644
--- a/ogcp/templates/images.html
+++ b/ogcp/templates/images.html
@@ -15,7 +15,8 @@
document.addEventListener('readystatechange', () => {
if (document.readyState === 'complete') {
keepTreeState('#servers');
- checkImageServer();
+ keepSelectedClients('images');
+ checkOnChange('image-server');
}
});
</script>
@@ -45,7 +46,8 @@
<input class="form-check-input" type="checkbox" form="imagesForm"
data-server="{{ server_str }}" value="{{ image["id"] }}"
{% if image.get("selected", False) %}checked{% endif %}
- name="{{ image["name"] }}_{{ image["id"] }}" />
+ name="{{ image["name"] }}_{{ image["id"] }}"
+ id="image{{ image["id"] }}"/>
{{ image["name"] }}
</li>
{% endfor %}
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>