Adds an optional description to attachments.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1180 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-02-29 19:46:58 +00:00
parent 4b15dc10c1
commit 9daf39ec52
44 changed files with 138 additions and 71 deletions
+12 -3
View File
@@ -10,15 +10,24 @@ function checkAll (id, checked) {
}
}
var fileFieldCount = 1;
function addFileField() {
if (fileFieldCount >= 10) return false
fileFieldCount++;
var f = document.createElement("input");
f.type = "file";
f.name = "attachments[]";
f.name = "attachments[" + fileFieldCount + "][file]";
f.size = 30;
p = document.getElementById("attachments_p");
var d = document.createElement("input");
d.type = "text";
d.name = "attachments[" + fileFieldCount + "][description]";
d.size = 60;
p = document.getElementById("attachments_fields");
p.appendChild(document.createElement("br"));
p.appendChild(f);
p.appendChild(d);
}
function showTab(name) {