Remove outline on hidden input in smart upload button

This commit is contained in:
Aleksander Machniak 2013-03-17 11:57:26 +01:00
parent 2358a0d807
commit 8ee53e5f1c

View file

@ -103,7 +103,7 @@ function kolab_files_upload_input(button)
file.attr({name: 'file[]', type: 'file', multiple: 'multiple', size: 5})
.change(function() { rcmail.files_upload('#filesuploadform'); })
// opacity:0 does the trick, display/visibility doesn't work
.css({opacity: 0, cursor: 'pointer', position: 'absolute', top: '10000px', left: '10000px'});
.css({opacity: 0, cursor: 'pointer', outline: 'none', position: 'absolute', top: '10000px', left: '10000px'});
// In FF and IE we need to move the browser file-input's button under the cursor
// Thanks to the size attribute above we know the length of the input field