aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mediagoblin/static/js/notifications.js2
-rw-r--r--mediagoblin/templates/mediagoblin/base.html3
2 files changed, 4 insertions, 1 deletions
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') }}"></script>
<script type="text/javascript"
src="{{ request.staticdirect('/js/notifications.js') }}"></script>
+ <script>
+ var mark_all_comments_seen_url = "{{ request.urlgen('mediagoblin.notifications.mark_all_comment_notifications_seen') }}"
+ </script>
{# For clarification, the difference between the extra_head.html template
# and the head template hook is that the former should be used by