1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-10-30 15:42:41 +01:00

Merge pull request #874 from BookStackApp/fix/gototext

Fixes undefined error when clicking on link under page navigation.
This commit is contained in:
Dan Brown 2018-07-01 16:13:10 +01:00 committed by GitHub
commit 45aee2a1c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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));
});
}