Fixed "leave shared project" javascript
Now the project is actually removed from the page. This isn't optimal; see T53546 for a followup.
This commit is contained in:
@@ -264,7 +264,7 @@ script.
|
||||
$projects_list.find('span.user-remove-confirm').on('click', function(e){
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
var parent = $(this).closest('projects__list-item');
|
||||
var parent = $(this).closest('.projects__list-item');
|
||||
|
||||
function removeUser(userId, projectUrl){
|
||||
$.post(projectUrl, {user_id: userId, action: 'remove'})
|
||||
|
Reference in New Issue
Block a user