From 3076d3468f12495b38b87ee71e21958b5930e48c Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Fri, 25 May 2012 19:15:15 +0200 Subject: [PATCH] fix #642 cancel an upload --- templates/web/prod/upload/upload.html.twig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/web/prod/upload/upload.html.twig b/templates/web/prod/upload/upload.html.twig index 62b5b4df30..e85380eef2 100644 --- a/templates/web/prod/upload/upload.html.twig +++ b/templates/web/prod/upload/upload.html.twig @@ -286,8 +286,9 @@ $(document).ready(function () { }); //cancel request - $('button.cancel', data.context).bind('click', function (e) { + $('button.remove-element', data.context).bind('click', function (e) { jqXHR.abort(); + data.context.remove(); }); }); });