Fix IE hang when addint multiple files to a ticket. Fixes Google Code issue #133; Github issue #7. Thanks to Google Code user 'dswoods' for the patch.

This commit is contained in:
Ross Poulton 2011-01-29 06:12:38 +00:00
parent bd89c1c7de
commit b68bd73d07

View File

@ -30,7 +30,7 @@
/* Until jQuery includes some 'livequery' functionality in the core
distribution, this will have to do. */
$(".AddAnotherFile>a").click(function() {
$(this).parent().hide();
$(this).parent().remove();
$("#FileUpload>dl").append("<dt><label>{% trans "Attach another File" %}</label></dt><dd><input type='file' name='attachment' id='file' /> <span class='AddAnotherFile'>(<a href='#'>{% trans "Add Another File" %}</a>)</span></dd>");
processAddFileClick();
return false;