Fix upload button in IE

This commit is contained in:
Aleksander Machniak 2013-03-15 13:34:33 +01:00
parent 946245fb93
commit 6000fd925f

View file

@ -105,10 +105,10 @@ function kolab_files_upload_input(button)
// opacity:0 does the trick, display/visibility doesn't work
.css({opacity: 0, cursor: 'pointer', position: 'absolute', top: '10000px', left: '10000px'});
// In FF we need to move the browser file-input's button under the cursor
// 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
if (bw.mz)
file.css({marginLeft: '-75px'});
if (bw.mz || bw.ie)
file.css({marginLeft: '-80px'});
// Note: now, I observe problem with cursor style on FF < 4 only
link.css({overflow: 'hidden', cursor: 'pointer'})