TWEagle / galleriffic

Automatically exported from code.google.com/p/galleriffic
0 stars 0 forks source link

Option to not remove caption from thumbnail list item #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be great if there was a boolean option like 'removeThumbCaptions'
so that the caption div is not removed from the list item when initializing
Galleriffic.

I was trying to modify the code accordingly, but didn't have enough
knowledge of JavaScript and jQuery to carry it out.

This is what I'm talking about:

<ul class="thumbs noscript">
  <li>
    <a class="thumb" href="/img/image.jpg" rel="history">
      <img alt="" src="/img/thumbnail.jpg"/>
    </a> 
    <div class="caption">
      Please, do not remove me unless I give my permission. 
    </div>
  </li>
</ul>

Original issue reported on code.google.com by petterss...@gmail.com on 14 Aug 2009 at 1:28

GoogleCodeExporter commented 9 years ago
After some more trial-and-error:ing I got the following to work (see patch).

However, this might not be the optimal way. In that case, please just look at 
this as
a token of my share in the matter.

Original comment by petterss...@gmail.com on 14 Aug 2009 at 2:07

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by trentfoley on 15 Aug 2009 at 8:35