LPology / Simple-Ajax-Uploader

Javascript file upload plugin with progress bar support. Works in all major browsers, including IE7+, Chrome, Firefox, Safari, and Opera. No dependencies - use it with or without jQuery.
995 stars 267 forks source link

Usage with overlay - z-index problem #145

Open enumag opened 8 years ago

enumag commented 8 years ago

I use this script one one page along with colorbox. When I click on a colorbox link it creates an overlay to show the large image. However the upload inputs from this plugin while not visible are still clickable because they are above the overlay (because of their high z-index).

Maybe we should add an option to set the z-index for the upload inputs? Or is there a different solution?

LPology commented 8 years ago

@enumag We could add an option for z-index value. That's pretty simple. Would that work?

enumag commented 8 years ago

@LPology Yeah. It's odd to use the constants anyway.

LPology commented 8 years ago

@enumag Was just thinking, would it make more sense to toggle visibility of the parent div of the file input? That's how we hide it when the mouse isn't over the upload button. Or maybe both?

enumag commented 8 years ago

@LPology That would certainly make more sense. I'm just not sure if the situation is possible to detect.