Nivo-Gallery icon indicating copy to clipboard operation
Nivo-Gallery copied to clipboard

li tags inside html slides don't work

Open asb-capfan opened this issue 12 years ago • 1 comments

Hi!

When you define a HTML slide with li tags in it, the li items will be considered new slides. This is wrong, the selector should only select the first li childs of the ul as slides.

Example:

  <li data-type="html">
    <h1>Some HTML here - works fine</h1>
  </li>
  <li data-type="html">
    <h1>Some HTML here - works fine</h1>
    <ul><li>list item inside a slide, doesn't work</li></ul>
  </li>

HTH, Alex

asb-capfan avatar Mar 19 '12 15:03 asb-capfan

Have the same issue. To solve it change: global.slides = $element.find('ul li').remove(); to global.slides = $('>ul >li', $element).remove();

gobezu avatar May 05 '12 07:05 gobezu