fix delete name, and start moving handlers to '#content'

This commit is contained in:
Henrique Dias
2016-02-08 08:24:12 +00:00
parent 55a6632934
commit 05712f2c08
3 changed files with 35 additions and 26 deletions

View File

@@ -21,7 +21,9 @@ $(document).ready(function() {
$(document).pjax('a[data-pjax]', '#content');
});
$(document).on('ready pjax:success', function() {
$(document).on('ready pjax:end', function() {
$('#content').off();
// Update the title
document.title = document.getElementById('site-title').innerHTML;