From 9c946df709fbeca15bc6e76435cbe30269a2bd3a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 10 Jun 2026 07:02:20 -0300 Subject: client, content, css: simple group contributions table filter --- src/static/js/client-util.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/static/js/client-util.js') diff --git a/src/static/js/client-util.js b/src/static/js/client-util.js index de54945c..8ad31b90 100644 --- a/src/static/js/client-util.js +++ b/src/static/js/client-util.js @@ -16,9 +16,15 @@ export function rebase(href, rebaseKey = 'rebaseLocalized') { export function cssProp(el, ...args) { if (typeof args[0] === 'string' && args.length === 1) { - return getComputedStyle(el).getPropertyValue(args[0]).trim(); + if (el) { + return getComputedStyle(el).getPropertyValue(args[0]).trim(); + } else { + return ''; + } } + if (!el) return; + if (typeof args[0] === 'string' && args.length === 2) { if (args[1] === null) { el.style.removeProperty(args[0]); -- cgit 1.3.0-6-gf8a5