From 9cc9fcbcdb586567d2b2c56b0f501e90e8e10103 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Fri, 8 Nov 2019 14:37:02 +0000 Subject: [PATCH] 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 --- html/debdb.js | 4 ++++ html/template/header.wml | 8 +------- 2 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 html/debdb.js 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 @@ - + -- 2.20.1