Make it easier to allow multiple file attachments on update. Closes #90.

This commit is contained in:
Ross Poulton 2012-08-07 22:55:56 +10:00
parent e209793aa2
commit 23a85efea7

View File

@ -31,7 +31,7 @@
distribution, this will have to do. */
$(".AddAnotherFile>a").click(function() {
$(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>");
$("#FileUpload>dl").append("<dt><label>{% trans "Attach another File" %}</label></dt><dd><input type='file' name='attachment' id='file' multiple/> <span class='AddAnotherFile'>(<a href='#'>{% trans "Add Another File" %}</a>)</span></dd>");
processAddFileClick();
return false;
});
@ -194,7 +194,7 @@ function googleTranslateElementInit() {
<dl>
<dt><label for='id_file'>{% trans "Attach a File" %}</label></dt>
<dd><input type='file' name='attachment' id='file' /> <span class='AddAnotherFile'>(<a href='#'>{% trans "Add Another File" %}</a>)</span></dd>
<dd><input type='file' name='attachment' id='file' multiple/> <span class='AddAnotherFile'>(<a href='#'>{% trans "Add Another File" %}</a>)</span></dd>
</dl>
</div>