From 4676c494822018a3bb4e7b6abb32c2584e7008cb Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Thu, 15 Nov 2018 14:45:40 -0500 Subject: [PATCH] Take out the PJAX again. It seems initially to work with notifications, but ultimately it just doesn't quite. --- brutaldon/static/js/brutaldon-enhancements.js | 19 ---- brutaldon/templates/base.html | 86 ++----------------- brutaldon/templates/main/toot_partial.html | 10 +-- brutaldon/views.py | 1 - 4 files changed, 10 insertions(+), 106 deletions(-) diff --git a/brutaldon/static/js/brutaldon-enhancements.js b/brutaldon/static/js/brutaldon-enhancements.js index 365070b..1bf83c4 100644 --- a/brutaldon/static/js/brutaldon-enhancements.js +++ b/brutaldon/static/js/brutaldon-enhancements.js @@ -152,22 +152,3 @@ function characterCount() return $("#id_status").val().length + $("#id_spoiler_text").val().length; } -function savePlace() -{ - sessionStorage.setItem("lastScrollPos", window.scrollY); - return true; -} - -function restorePlace(ev) -{ - var lastScrollPos = sessionStorage.getItem('lastScrollPos'); - Intercooler.ready(function (elt) - { - if (elt[0].id == 'main') - { - window.scrollTo(0, lastScrollPos); - } - $('#page-load-indicator').hide(); - }); - return false; -} diff --git a/brutaldon/templates/base.html b/brutaldon/templates/base.html index b402c27..78836dd 100644 --- a/brutaldon/templates/base.html +++ b/brutaldon/templates/base.html @@ -59,15 +59,7 @@ {% endblock %} -
+
{% block content %}

@@ -248,8 +182,6 @@