use urlgen and store it in a variable

This commit is contained in:
Rodney Ewing
2013-08-08 11:23:16 -07:00
parent 04d8ced5c6
commit 4a2aa93c6a
2 changed files with 4 additions and 1 deletions

View File

@@ -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(); },
});
}