]> BookStack Code Mirror - bookstack/commitdiff
Fixes undefined error when clicking on page navigation links. 874/head
authorAbijeet <redacted>
Sun, 3 Jun 2018 08:54:55 +0000 (14:24 +0530)
committerAbijeet <redacted>
Sun, 3 Jun 2018 08:54:55 +0000 (14:24 +0530)
Fixes #873

Signed-off-by: Abijeet <redacted>
resources/assets/js/components/page-display.js

index f51cb7f34e43ffc594e846381fc6989d3fe1356a..5eb5648cd809342ae6bfab9faa4e763bf3ca7e10 100644 (file)
@@ -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));
         });
     }
 
Morty Proxy This is a proxified and sanitized view of the page, visit original site.