From 0363fc4ea12a803013f56c3300da89d3a505dcd0 Mon Sep 17 00:00:00 2001 From: Abijeet Date: Sun, 3 Jun 2018 14:24:55 +0530 Subject: [PATCH] Fixes undefined error when clicking on page navigation links. Fixes #873 Signed-off-by: Abijeet --- resources/assets/js/components/page-display.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/components/page-display.js b/resources/assets/js/components/page-display.js index f51cb7f34..5eb5648cd 100644 --- a/resources/assets/js/components/page-display.js +++ b/resources/assets/js/components/page-display.js @@ -20,7 +20,7 @@ class PageDisplay { // Sidebar page nav click event $('.sidebar-page-nav').on('click', 'a', event => { - goToText(event.target.getAttribute('href').substr(1)); + this.goToText(event.target.getAttribute('href').substr(1)); }); }