1
0

Documented a JS error I can't fix right now.

This commit is contained in:
Matthias Mees
2013-05-30 22:06:42 +02:00
parent 7f72419e3c
commit 72a6e9473a

View File

@ -521,7 +521,7 @@ function addUploadField() {
targetdir_label.attr('for', 'target_directory_' + upload_fieldcount);
$fields.insertBefore('#upload_form');
// This throws: "Uncaught TypeError: Cannot read property 'selectedIndex' of null" ?
document.getElementById(targetdir.attr('id')).selectedIndex = document.getElementById('target_directory_' + (upload_fieldcount - 1)).selectedIndex;
}