From 18e1fb0d9630ffcf7800c8255b1df98a2ef476ac Mon Sep 17 00:00:00 2001 From: Adam Wolf Date: Thu, 28 Oct 2021 22:31:54 -0500 Subject: [PATCH] Fixes Add button behavior on Safari Previously, when you clicked the Add button, the page wouldn't change. It looked like it wasn't doing anything, as noted by @rcarmo (https://github.com/ArchiveBox/ArchiveBox/issues/658#issuecomment-948300055) I didn't track it down the exact reason why. It may be that Safari didn't like the two opening

s, but I was able to find a bunch of people complaining about Safari being very finicky with innerHTML and actually repainting the page, enough that I decided to try just extending the block hide/show behavior already done with the delay-warning, and it works for me now in both Chrome and Safari. For #658. --- archivebox/templates/core/add.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/archivebox/templates/core/add.html b/archivebox/templates/core/add.html index 4a60b02e..7d6efc6c 100644 --- a/archivebox/templates/core/add.html +++ b/archivebox/templates/core/add.html @@ -28,6 +28,14 @@   Add more URLs ➕ {% else %} +
{% csrf_token %}

Add new URLs to your archive


@@ -48,10 +56,9 @@ {% endif %}