From 4a2aa93c6abeb4831a03a9e8bd7089d0a6f2470e Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Thu, 8 Aug 2013 11:23:16 -0700 Subject: [PATCH] use urlgen and store it in a variable --- mediagoblin/static/js/notifications.js | 2 +- mediagoblin/templates/mediagoblin/base.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mediagoblin/static/js/notifications.js b/mediagoblin/static/js/notifications.js index c1c06a43..78694f59 100644 --- a/mediagoblin/static/js/notifications.js +++ b/mediagoblin/static/js/notifications.js @@ -41,7 +41,7 @@ $(document).ready(function () { mark_all_comments_seen.onclick = function() { $.ajax({ type: 'GET', - url: '/notifications/comments/mark_all_seen/', + url: mark_all_comments_seen_url, success: function(res, status, xhr) { window.location.reload(); }, }); } diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html index f7e2dff0..f9deb2ad 100644 --- a/mediagoblin/templates/mediagoblin/base.html +++ b/mediagoblin/templates/mediagoblin/base.html @@ -37,6 +37,9 @@ src="{{ request.staticdirect('/js/header_dropdown.js') }}"> + {# For clarification, the difference between the extra_head.html template # and the head template hook is that the former should be used by -- 2.25.1