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

update get unseen notifications count

This commit is contained in:
lian
2016-08-19 12:00:05 +08:00
committed by lian
parent b4599bf6b0
commit 8d62d3786e
6 changed files with 56 additions and 19 deletions

View File

@@ -30,11 +30,11 @@ define([
var reqUnreadNum = function() {
$.ajax({
url: Common.getUrl({name: 'get_unseen_notices_num'}),
url: Common.getUrl({name: 'notifications'}),
dataType: 'json',
cache: false,
success: function(data) {
var count = data['count'],
var count = data['unseen_count'],
$num = _this.$num;
$num.html(count);
if (count > 0) {