From 6d37046933bb9f8afe8f06d6ee85928a8d2f67bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 12 Dec 2017 11:48:48 +0100 Subject: [PATCH] Fixed "leave shared project" javascript Now the project is actually removed from the page. This isn't optimal; see T53546 for a followup. --- src/templates/projects/index_dashboard.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/projects/index_dashboard.pug b/src/templates/projects/index_dashboard.pug index 41b3136a..d51d7f4b 100644 --- a/src/templates/projects/index_dashboard.pug +++ b/src/templates/projects/index_dashboard.pug @@ -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'})