summaryrefslogtreecommitdiffstats
path: root/ogcp/static/js/ogcp.js
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/static/js/ogcp.js')
-rw-r--r--ogcp/static/js/ogcp.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/ogcp/static/js/ogcp.js b/ogcp/static/js/ogcp.js
index c6dbdf0..ff15390 100644
--- a/ogcp/static/js/ogcp.js
+++ b/ogcp/static/js/ogcp.js
@@ -2,6 +2,23 @@ const Endpoint = '/scopes/status';
const Interval = 1000;
let updateTimeoutId = null;
+function keepSelectedClients() {
+ const checkboxes = $('input:checkbox[form|="scopesForm"]')
+
+ checkboxes.on('change', function (event) {
+ if (this.checked)
+ localStorage.setItem(this.name, "check");
+ else
+ localStorage.removeItem(this.name);
+ });
+
+ checkboxes.each(function () {
+ if (localStorage.getItem(this.name) == 'check') {
+ this.checked = true;
+ }
+ });
+}
+
function keepScopesTreeState() {
const scopes_tree = $('#scopes .collapse')