Fix lint errors
This commit is contained in:
@@ -1,25 +1,26 @@
|
|||||||
console.log('Document initialized:', window.location.href)
|
/* global Pjax */
|
||||||
|
console.log("Document initialized:", window.location.href)
|
||||||
|
|
||||||
document.addEventListener('pjax:send', function () {
|
document.addEventListener("pjax:send", function() {
|
||||||
console.log('Event: pjax:send', arguments)
|
console.log("Event: pjax:send", arguments)
|
||||||
})
|
})
|
||||||
|
|
||||||
document.addEventListener('pjax:complete', function () {
|
document.addEventListener("pjax:complete", function() {
|
||||||
console.log('Event: pjax:complete', arguments)
|
console.log("Event: pjax:complete", arguments)
|
||||||
})
|
})
|
||||||
|
|
||||||
document.addEventListener('pjax:error', function () {
|
document.addEventListener("pjax:error", function() {
|
||||||
console.log('Event: pjax:error', arguments)
|
console.log("Event: pjax:error", arguments)
|
||||||
})
|
})
|
||||||
|
|
||||||
document.addEventListener('pjax:success', function () {
|
document.addEventListener("pjax:success", function() {
|
||||||
console.log('Event: pjax:success', arguments)
|
console.log("Event: pjax:success", arguments)
|
||||||
})
|
})
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener("DOMContentLoaded", function() {
|
||||||
var pjax = new Pjax({
|
var pjax = new Pjax({
|
||||||
selectors: ['.body']
|
selectors: [".body"]
|
||||||
})
|
})
|
||||||
console.log('Pjax initialized.', pjax)
|
console.log("Pjax initialized.", pjax)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user