Skip to content

Commit

Permalink
Fix pjax
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Oct 15, 2015
1 parent b033bcd commit 6ce117d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions data/script.js
Expand Up @@ -13,11 +13,14 @@ var Scrollclass = require('./scrollclass')
*/

void (function () {
new Pjax({
selectors: ['.body', '.toc-menu', 'title']
ready(function () {
new Pjax({
selectors: ['.body', '.toc-menu', 'title']
})
})

document.addEventListener('pjax:send', function () {
console.log("PJAX:START BITCHES")
Nprogress.start()
})

Expand All @@ -26,6 +29,7 @@ void (function () {
})

document.addEventListener('pjax:complete', function () {
console.log("PJAX:DONE BITCHES")
Nprogress.done()
})
}())
Expand Down

0 comments on commit 6ce117d

Please sign in to comment.