diff options
author | 2018-04-17 23:43:49 +0100 | |
---|---|---|
committer | 2018-04-17 23:43:49 +0100 | |
commit | 40b89cc9f3b407e157922870691736c4bd3961c6 (patch) | |
tree | b701325fc153e5238de7795234073315246eb610 | |
parent | Fix for previous commit, did not realise view names were namespaced (diff) |
Fix JS again
-rw-r--r-- | static/js/revision_diff.js | 2 |
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 } |