Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
fix visit notification non working link on Discussion page (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
Umar Asghar authored and ihtram committed Mar 22, 2019
1 parent ff15a32 commit ee286d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -505,10 +505,11 @@ var NotificationPaneView = Backbone.View.extend({
this.collection.url = this.mark_notification_read_endpoint + messageId;

var self = this;
var csrf_token = this.getCSRFToken();
self.collection.fetch(
{
headers: {
"X-CSRFToken": this.getCSRFToken()
beforeSend: function(xhr) {
xhr.setRequestHeader('X-CSRFToken', csrf_token);
},
data: {
"mark_as": "read"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def load_requirements(*requirements_paths):

setup(
name='edx-notifications',
version='0.7.6',
version='0.7.7',
description='Notification subsystem for Open edX',
long_description=open('README.md').read(),
author='edX',
Expand Down

0 comments on commit ee286d0

Please sign in to comment.