From 8b2c1e0cbde96a74e35b348c6476a84a2fa5e42b Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 2 Dec 2013 15:10:14 +0100 Subject: [PATCH] Smart upload button: set file input title to button's title --- plugins/kolab_files/kolab_files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/kolab_files/kolab_files.js b/plugins/kolab_files/kolab_files.js index a70fb73e..4e81c0fa 100644 --- a/plugins/kolab_files/kolab_files.js +++ b/plugins/kolab_files/kolab_files.js @@ -387,7 +387,7 @@ function kolab_files_upload_input(button) file.css({top: (e.pageY - offset.top - 10) + 'px', left: (e.pageX - offset.left - 10) + 'px'}); } - file.attr({name: 'file[]', type: 'file', multiple: 'multiple', size: 5}) + file.attr({name: 'file[]', type: 'file', multiple: 'multiple', size: 5, title: link.attr('title')}) .change(function() { rcmail.files_upload('#filesuploadform'); }) .click(function() { setTimeout(function() { link.mouseleave(); }, 20); }) // opacity:0 does the trick, display/visibility doesn't work