Goldinteractive / jQuery.GI.TheWall.js

This plugin could be used to create easily an image gallery similar to the google image search
http://goldinteractive.github.io/jQuery.GI.TheWall.js
MIT License
135 stars 27 forks source link

Is it possible to change the trigger to a button within an item (li)? #7

Closed Chrisedmo closed 9 years ago

Chrisedmo commented 9 years ago

Hey - love your script!

But i have my code set up so that within each li, is an profile pic an some links to email etc then a button which I would like to make the expand happen. However atm if you click anywhere on the li it, it expands to show more. Is there a way to specify what will trigger the expand?

Many thanks

GianlucaGuarini commented 9 years ago

Thanks but I don't really understand what you are trying to do... could you make a jsfiddle?

GianlucaGuarini commented 9 years ago

Probably the easiest solution in your case would be to simply replace the event handler https://github.com/Goldinteractive/jQuery.GI.TheWall.js/blob/master/jQuery.GI.TheWall.js#L650

Chrisedmo commented 9 years ago

Thanks for the quick feedback! I just tried changing this to an ID that I have on my "find out more" button. But I get the following error "[Error] TypeError: undefined is not an object (evaluating 'this.selectedLiData.offset.top') I am working up a JSFiddle to try and explain a little more.

Chrisedmo commented 9 years ago

Here is a quick link of what i am trying to do: http://jsfiddle.net/t03c6prw/ I want the button to only trigger the extra information… at the moment I am unable to click the email address…

GianlucaGuarini commented 9 years ago

http://jsfiddle.net/gianlucaguarini/q3mncvam/1/ use the custom jQuery.GI.TheWall.js I've used in the jsfiddle

Chrisedmo commented 9 years ago

Wow @GianlucaGuarini thank you very much! 🍻