From bd6dd042bd6fc2d1169b729783bab9e3bf1e7fd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Tue, 14 Jan 2020 18:03:17 +0100 Subject: [PATCH] Fix isCorrected --- content/multipledataset.html | 2 +- static/js/data.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/multipledataset.html b/content/multipledataset.html index aee5110a..731df5b2 100644 --- a/content/multipledataset.html +++ b/content/multipledataset.html @@ -324,7 +324,7 @@ draft: false return -1 } else if (a.isTBE && b.isTBE) { - if (!a.isCorrected && b.isCorrected) { + if (!a.isCorrectedTBE && b.isCorrectedTBE) { return -1 } else { diff --git a/static/js/data.js b/static/js/data.js index 5a1a36cf..dae7e3c6 100644 --- a/static/js/data.js +++ b/static/js/data.js @@ -79,8 +79,8 @@ class method { get isTBE() { return /^TBE/.test(this.name) } - get isCorrected() { - return /corr$/.test(this.name) + get isCorrectedTBE() { + return this.name="TBE" } }