From 9683d44633cd24696573a0c3ca193a3b5d06f1b7 Mon Sep 17 00:00:00 2001 From: Dawid Opis Date: Thu, 11 Aug 2011 22:22:32 +0200 Subject: fixed upload button --- files/js/files.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'files/js') 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')); -- cgit v1.2.3