Close

Category accordion

violabg
10 years ago
#3276 Quote
Avatar
  • 28
on iPad portrait view when the categories are collapsed the javascript doesn't work

$(this).find(".title strong").click(function () {

            var viewport = $.getSpikesViewPort();

            if (viewport.width < 768) {
                //$(that).find(".listbox").slideToggle("slow"); //instead of taking the .listbox we can take the second child of the .block element
                // as the blocks in the filters do not have the .listbox class, but filtersGroupPanel instead
                $(that).children().eq(1).slideToggle("slow");
            }
        });

should be

if (viewport.width <? 768)
Aleks
10 years ago
#3285 Quote
Avatar
  • Moderator
  • 70
violabg wrote:
on iPad portrait view when the categories are collapsed the javascript doesn't work

$(this).find(".title strong").click(function () {

            var viewport = $.getSpikesViewPort();

            if (viewport.width < 768) {
                //$(that).find(".listbox").slideToggle("slow"); //instead of taking the .listbox we can take the second child of the .block element
                // as the blocks in the filters do not have the .listbox class, but filtersGroupPanel instead
                $(that).children().eq(1).slideToggle("slow");
            }
        });

should be

if (viewport.width <? 768)


1. Did you test on an actual iPad, or the iPad simulation on our demo website ?

2. Do you mean "if (viewport.width <= 768)" ?

Best regards,
Nop-Templates Support Team
Regards,
Aleksandar Ivanov
Nop-Templates.com
violabg
10 years ago
#3286 Quote
Avatar
  • 28
1) yes I tested on a IPad
2) yes I meant <= 768, sorry for the typo

when I changed the code on Alfresco.js i worked on the device
Support
10 years ago
#3296 Quote
Avatar
  • Moderator
  • 1044
Hi violabg,

Well spotted! We have adjusted the if-statement and uploaded the fix on our website. Thank you again for your feedback!