elastic-grid

Forking elastic grid plugin to be able to close preview by clicking anywhere on the screen

本小妞迷上赌 提交于 2019-12-11 14:59:40
问题 I'm using the elastic grid plugin for a grid display system on a site, but I want to be able to simply click off the expanded view and it automatically close without having to click on the thumbnail or 'x' button as the plugin suggests. I've had a bit of a look through the code and think this is where I need to edit function initEvents() { //when clicking an item, show the preview with the items info and larg image; //close the item if already expanded. //also close if clicking on the item's