diff --git a/module/doc/js/uploaddocs.js b/module/doc/js/uploaddocs.js index 6fe9cd6754..602ecbb418 100644 --- a/module/doc/js/uploaddocs.js +++ b/module/doc/js/uploaddocs.js @@ -213,6 +213,7 @@ function addFileUploadMutationObserver() var dotIdx = title.lastIndexOf('.'); if(dotIdx != '-1') title = title.substring(0, dotIdx); $('#title').val(title); + $('#file-upload .file-input-list .file-input').length <= 1 ? $('#uploadFormat').hide() : $('#uploadFormat').show(); }); observer.observe(fileUpload, {childList: true, subtree: true}); diff --git a/module/doc/view/uploaddocs.html.php b/module/doc/view/uploaddocs.html.php index 889d8752ff..91e86bd239 100644 --- a/module/doc/view/uploaddocs.html.php +++ b/module/doc/view/uploaddocs.html.php @@ -48,7 +48,7 @@