diff --git a/seahub/templates/sysadmin/admin_repo_view.html b/seahub/templates/sysadmin/admin_repo_view.html
index 4bb189a79a..701b6d148a 100644
--- a/seahub/templates/sysadmin/admin_repo_view.html
+++ b/seahub/templates/sysadmin/admin_repo_view.html
@@ -27,9 +27,9 @@
{% if is_default_repo %}
-
@@ -257,6 +257,10 @@ $(function() {
});
});
+$('#upload-file button').click(function() {
+ $('#upload-file input').click();
+});
+
// fold/unfold the dialog
$('#upload-file-dialog .fold-switch').click(function() {
var popup = $('#upload-file-dialog');
diff --git a/static/scripts/app/views/fileupload.js b/static/scripts/app/views/fileupload.js
index 940ef7f0ce..4b3b51285e 100644
--- a/static/scripts/app/views/fileupload.js
+++ b/static/scripts/app/views/fileupload.js
@@ -98,8 +98,7 @@ define([
// hide the upload menu
var menu = dirView.$('#upload-menu');
if (!menu.hasClass('hide')) {
- menu.find('.item').removeAttr('style')
- .end().addClass('hide');
+ menu.addClass('hide');
}
var file = data.files[0];