aboutsummaryrefslogtreecommitdiffstats
path: root/files/js/files.js
diff options
context:
space:
mode:
Diffstat (limited to 'files/js/files.js')
-rw-r--r--files/js/files.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/files/js/files.js b/files/js/files.js
index 519d48a523d..6af021c35bc 100644
--- a/files/js/files.js
+++ b/files/js/files.js
@@ -12,6 +12,12 @@ $(document).ready(function() {
$('#plugins>ul>li:first-child').data('dir','');
$('#plugins>ul>li:first-child').droppable(crumbDropOptions);
+ // Triggers invisible file input
+ $('#file_upload_button_wrapper').bind('click', function() {
+ $('#file_upload_start').trigger('click');
+ return false;
+ });
+
// Sets the file-action buttons behaviour :
$('tr').live('mouseenter',function(event) {
FileActions.display($(this).children('td.filename'));