From: Adam D. Barratt Date: Fri, 8 Nov 2019 14:37:02 +0000 (+0000) Subject: Move inline tablesorter Javascript to a new file X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=9cc9fcbcdb586567d2b2c56b0f501e90e8e10103;hp=98a946d94edf25ec5c43159533af76dc3b514cbe;p=mirror%2Fuserdir-ldap-cgi.git Move inline tablesorter Javascript to a new file This avoids needing the Content-Security-Policy to allow "unsafe-inline" Signed-off-by: Adam D. Barratt --- diff --git a/html/debdb.js b/html/debdb.js new file mode 100644 index 0000000..40336f3 --- /dev/null +++ b/html/debdb.js @@ -0,0 +1,4 @@ +$(function() { + $("#machines").tablesorter({widthFixed: true, widgets: ['zebra']}) + $(".sort").removeAttr("href") +}); diff --git a/html/template/header.wml b/html/template/header.wml index ec787a7..2f4aedf 100644 --- a/html/template/header.wml +++ b/html/template/header.wml @@ -36,12 +36,6 @@ - +