Fixes FileGallery element click listener.
Merge pull request #890 from RotaruDan/fixes

Fixes FileGallery element click listener.