From 2545b4c70ff08ebd0380eed3e62727e86043b9ed Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Sun, 26 Jan 2014 16:23:42 -0500 Subject: [PATCH] Refresh after note upload for authenticated users #304 --- karmaworld/templates/partial/filepicker.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/karmaworld/templates/partial/filepicker.html b/karmaworld/templates/partial/filepicker.html index 6edf249..cc91315 100644 --- a/karmaworld/templates/partial/filepicker.html +++ b/karmaworld/templates/partial/filepicker.html @@ -30,7 +30,7 @@ {% if not request.user.is_authenticated %} -

It will take a minute for your notes to appear. +

It will take a minute for your notes to appear here. We'd love to have you sign up so you can claim the karma points you just got. With a KarmaNotes account, you can build a reputation by continuing to upload great notes. @@ -42,7 +42,8 @@ Sign up for a traditional account {% else %} -

It will take a minute for your notes to appear. +

It will take a minute for your notes to appear. This page will refresh soon so you + can see your new notes. You'll be awarded karma points. Want to share again?

{% endif %} @@ -168,6 +169,11 @@ document.location.host === 'karmanotes.org') { _gat._getTracker()._trackEvent('upload', 'upload form submitted'); } + {% if user.is_authenticated %} + setTimeout(function(){ + location.reload(true); + }, 20000); + {% endif %} } }); // Add the name we've just uploaded to the list -- 2.25.1