aboutsummaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorGravatar Joseph <[email protected]>2018-04-17 23:43:49 +0100
committerGravatar Joseph <[email protected]>2018-04-17 23:43:49 +0100
commit40b89cc9f3b407e157922870691736c4bd3961c6 (patch)
treeb701325fc153e5238de7795234073315246eb610 /static
parentFix for previous commit, did not realise view names were namespaced (diff)
Fix JS again
Diffstat (limited to 'static')
-rw-r--r--static/js/revision_diff.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/revision_diff.js b/static/js/revision_diff.js
index 2b412d46..9d818c6b 100644
--- a/static/js/revision_diff.js
+++ b/static/js/revision_diff.js
@@ -5,7 +5,7 @@ let buttons = document.querySelectorAll("td input"); // Fetch all radio buttons
let id_reg = /compare-(before|after)-([\w|-]+)/; // Matches compare-after/before-ID
-function getRevisionId(element
+function getRevisionId(element){
let e = element.id.match(id_reg); // Match ID with RegExp
return [e[1], e[2]]; // e is in format of [full id, after/before, ID] we only want ID & mode
}