1
0

Merge branch '2.0' of github.com:s9y/Serendipity into 2.0

This commit is contained in:
onli
2013-05-30 22:20:32 +02:00

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;
}