|
@@ -71,6 +71,11 @@ function cell(r, k) {
|
|
|
|
|
|
|
|
const S = { q: "", group: "mq", sort: "name", dir: 1, hidden: new Set(["title", "image", "port"]),
|
|
const S = { q: "", group: "mq", sort: "name", dir: 1, hidden: new Set(["title", "image", "port"]),
|
|
|
page: 0, size: 50, closed: new Set(), openRow: null };
|
|
page: 0, size: 50, closed: new Set(), openRow: null };
|
|
|
|
|
+// the browser restores form controls across page reloads — follow them
|
|
|
|
|
+// (otherwise the select shows the old choice while the table stays grouped
|
|
|
|
|
+// by the hardcoded default)
|
|
|
|
|
+S.q = document.getElementById("q").value;
|
|
|
|
|
+S.group = document.getElementById("group").value;
|
|
|
|
|
|
|
|
const esc = s => String(s).replace(/[&<>"]/g, c => ({"&":"&","<":"<",">":">",'"':"""}[c]));
|
|
const esc = s => String(s).replace(/[&<>"]/g, c => ({"&":"&","<":"<",">":">",'"':"""}[c]));
|
|
|
|
|
|