mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-07 03:14:33 +08:00
Merge pull request #874 from BookStackApp/fix/gototext
Fixes undefined error when clicking on link under page navigation.
This commit is contained in:
@ -20,7 +20,7 @@ class PageDisplay {
|
|||||||
|
|
||||||
// Sidebar page nav click event
|
// Sidebar page nav click event
|
||||||
$('.sidebar-page-nav').on('click', 'a', event => {
|
$('.sidebar-page-nav').on('click', 'a', event => {
|
||||||
goToText(event.target.getAttribute('href').substr(1));
|
this.goToText(event.target.getAttribute('href').substr(1));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user