1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

update set_notice_seen_by_id

This commit is contained in:
lian
2016-08-19 15:17:46 +08:00
committed by lian
parent 5a700d5f00
commit 86f948aaa8
6 changed files with 53 additions and 32 deletions

View File

@@ -100,9 +100,10 @@ define([
var notice_id = $el.closest('.unread').data('id');
var link_href = $el.attr('href');
$.ajax({
url: Common.getUrl({name: 'set_notice_seen_by_id'}) + '?notice_id=' + encodeURIComponent(notice_id),
type: 'POST',
url: Common.getUrl({name: 'notification'}),
type: 'PUT',
dataType: 'json',
data:{'notice_id': encodeURIComponent(notice_id)},
beforeSend: Common.prepareCSRFToken,
success: function(data) {
location.href = link_href;