From 463762b008f31a5817eff1c33b233567cfba00a4 Mon Sep 17 00:00:00 2001 From: Joseph Date: Tue, 17 Apr 2018 23:27:59 +0100 Subject: Fix revision list JS & add menu item for revisions --- static/js/revision_diff.js | 4 ++-- templates/wiki/base.html | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/static/js/revision_diff.js b/static/js/revision_diff.js index 86f30b41..2b412d46 100644 --- a/static/js/revision_diff.js +++ b/static/js/revision_diff.js @@ -1,6 +1,6 @@ "use strict"; -function(){ +(function() { let buttons = document.querySelectorAll("td input"); // Fetch all radio buttons let id_reg = /compare-(before|after)-([\w|-]+)/; // Matches compare-after/before-ID @@ -72,4 +72,4 @@ buttons.forEach(function(button){ radioButtonChecked(button); } }); -}(); +})(); diff --git a/templates/wiki/base.html b/templates/wiki/base.html index b2545977..0eb410ad 100644 --- a/templates/wiki/base.html +++ b/templates/wiki/base.html @@ -92,6 +92,11 @@  Source +
  • + +  Revisions + +
  • {% else %}
  • -- cgit v1.2.3