From cda4de337ffd8fd6c5f1970de10bd63acabec027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20D=C3=B6tsch?= Date: Thu, 29 Aug 2024 10:22:38 +0200 Subject: [PATCH] tag 4.16.1 --- serveradmin/servershell/static/js/inspect.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 serveradmin/servershell/static/js/inspect.js diff --git a/serveradmin/servershell/static/js/inspect.js b/serveradmin/servershell/static/js/inspect.js new file mode 100644 index 00000000..6f820827 --- /dev/null +++ b/serveradmin/servershell/static/js/inspect.js @@ -0,0 +1,11 @@ +let hide_empty = function(element) { + let button = $(element); + + if (button.attr('aria-pressed') === 'true') { + $('tbody tr').show(); + } + else { + $('tbody tr').hide(); + $('tbody td.diff').parent('tr').show(); + } +};