mativs / fisotope

Facet search for metafizzy's Isotope
25 stars 4 forks source link

Error with jQuery 1.10.2 #2

Closed macsupport closed 11 years ago

macsupport commented 11 years ago

TypeError: atributo is undefined http://192.168.1.11/bootstrap/fisotope.js Line 117

mativs commented 11 years ago

Hi, thank you again!! :D

The jquery.bbq doesn't work with earlier jquery's versions. I have added the jquery-migrate library and now is working. Can you check it now?

Thanks

macsupport commented 11 years ago

If I remove

<div class="btn-group fiso-selector pull-right" fiso-facet="genres" >
            <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
              Genres <span class="fiso-counter-available" fiso-facet="genres"></span>
              <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li class="fiso-example"><a href="#"></a></li>
              <li class="divider"></li>
              <li><a href="#" class="fiso-toggle-facet" fiso-facet="genres">Toggle Operator</a></li>
              <li><a href="#"   class="fiso-clear-facet" fiso-facet="genres">Clear  <span class="fiso-counter-selected" fiso-facet="genres"></span> selected</a></li>

            </ul>
          </div>

There is no error, otherwise the same as before. I'm seeing if it is some other jQuery plugin on my page but so far, no luck

mativs commented 11 years ago

I have added a fix to handle the bug.

Just to be sure, are you setting all facets in all off your items? In other words, I'm guessing that some of your items has no categories for a facet. If that is correct I've found the bug.

Fisotope was expecting that all items have set all the "fiso-". I've changed that and I've added an if clause to handle it.

Let me know if it solves it.

And again, thank you very much for helping me :smile:

macsupport commented 11 years ago

That was the issue. Everything seems to be working now.

mativs commented 11 years ago

Awesome, thanks. I'm closing the issue.