diff -r ded3cd1312c1 -r 8158421193e3 src/widgets/AnnotationsList.js --- a/src/widgets/AnnotationsList.js Fri Sep 18 17:21:12 2015 +0200 +++ b/src/widgets/AnnotationsList.js Mon Sep 21 18:24:32 2015 +0200 @@ -51,6 +51,7 @@ annotations_count_header : true, show_creation_date : false, show_timecode : true, + project_id: "", /* * Only annotation in the current segment will be displayed. Designed to work with the Segments Widget. */ @@ -684,7 +685,7 @@ IriSP.Widgets.AnnotationsList.prototype.sendDelete = function(id){ var _this = this, - _url = Mustache.to_html(this.api_delete_endpoint, {annotation_id: id}) + _url = Mustache.to_html(this.api_delete_endpoint, {annotation_id: id, project_id: this.project_id}) IriSP.jQuery.ajax({ url: _url, @@ -724,7 +725,17 @@ }); this.userselect_$.html(""); this.usernames.forEach(function(_user){ - _this.userselect_$.append(""); + var _users = _this.source.users_data.filter(function(_user_data){ + return _user_data.username == _user; + }), + _user_data = {}; + if (_users.length == 0){ + _user_data.username = _user; + } + else{ + _user_data = _users[0]; + } + _this.userselect_$.append(""); }); } if (this.keyword_filter){