From: Charles Connell Date: Sun, 26 Jan 2014 21:23:42 +0000 (-0500) Subject: Refresh after note upload for authenticated users #304 X-Git-Tag: release-20150131~199 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2545b4c70ff08ebd0380eed3e62727e86043b9ed;p=oweals%2Fkarmaworld.git Refresh after note upload for authenticated users #304 --- 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