diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-02-03 16:18:14 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-02-03 16:18:14 +0100 |
commit | 85bec3ffcb0e2c948c57cee2817307af2826d847 (patch) | |
tree | 57d26e0d40e50d12da4d6913c3d30529a1e924cb /apps/comments/js/commentmodel.js | |
parent | 8bb1437e240ce47e04f7bcb7dc3a56ef6b5d892b (diff) | |
download | nextcloud-server-85bec3ffcb0e2c948c57cee2817307af2826d847.tar.gz nextcloud-server-85bec3ffcb0e2c948c57cee2817307af2826d847.zip |
Reset comments read marker after loading comments
Diffstat (limited to 'apps/comments/js/commentmodel.js')
-rw-r--r-- | apps/comments/js/commentmodel.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/comments/js/commentmodel.js b/apps/comments/js/commentmodel.js index b945f71fdd2..ba04fd61de3 100644 --- a/apps/comments/js/commentmodel.js +++ b/apps/comments/js/commentmodel.js @@ -34,11 +34,12 @@ 'actorDisplayName': '{' + NS_OWNCLOUD + '}actorDisplayName', 'creationDateTime': '{' + NS_OWNCLOUD + '}creationDateTime', 'objectType': '{' + NS_OWNCLOUD + '}objectType', - 'objectId': '{' + NS_OWNCLOUD + '}objectId' + 'objectId': '{' + NS_OWNCLOUD + '}objectId', + 'isUnread': '{' + NS_OWNCLOUD + '}isUnread' }, parse: function(data) { - // TODO: parse non-string values + data.isUnread = (data.isUnread === 'true'); return data; } }); |