Improve and condense related controls
This commit is contained in:
@@ -70,6 +70,7 @@
|
||||
onclick="return false;">
|
||||
<span class="icon is-small"><i class="fa-solid fa-check"></i></span>
|
||||
<span>{{ column.label }}</span>
|
||||
<span class="is-size-7 has-text-grey ml-2">({{ column.field_name }})</span>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
@@ -284,11 +285,18 @@
|
||||
<script>
|
||||
(function () {
|
||||
const tableId = "{{ osint_table_id|escapejs }}";
|
||||
const scopeKey = "{{ osint_scope|default:'global'|escapejs }}";
|
||||
const columnSignature = "{{ osint_columns|length }}:{% for column in osint_columns %}{{ column.key|escapejs }}|{% endfor %}";
|
||||
const shell = document.getElementById(tableId);
|
||||
if (!shell) {
|
||||
return;
|
||||
}
|
||||
const storageKey = "gia_osint_hidden_cols_v1:" + tableId;
|
||||
const storageKey = [
|
||||
"gia_osint_hidden_cols_v2",
|
||||
tableId,
|
||||
scopeKey,
|
||||
columnSignature,
|
||||
].join(":");
|
||||
let hidden = [];
|
||||
try {
|
||||
hidden = JSON.parse(localStorage.getItem(storageKey) || "[]");
|
||||
|
||||
Reference in New Issue
Block a user