• Resolved eschoyen

    (@eschoyen)


    Hey!

    Great app!

    Just have one problem, on only one table. And that’s the table on this site:
    https://www.haugesund-teater.no/billetter/

    It won’t hide columns at all. Now, I’ve selected that the columns should “kl.” and “status” should be hided at all table breakpoints.

    This it not such big problem at a desktop, but on a mobile phone it’s quite disturbing.

    What to do?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author MyThirdEye

    (@mythirdeye)

    Hello eschoyen,

    First of all thank you for using my plugin and providing feedback!

    I did a little bit of digging around in the link you gave me and I’ve found the issue. The reason why your table isn’t hiding columns is because of my sloppy coding. Above the table there is an invisible element that has the values for custom breakpoints. I check this with the .prev() function which gets the previous element from the table. However, on your website, the invisible element is wrapped around <p> tags for some reason so it is messing everything up.

    Are you using the [shortcode] method to insert your table or plain html? If you’re using the shortcode method, check to see if it is wrapped around a <p> element. If not you may have to edit the code to find the proper element instead of the .prev(). The way to do this is the following:

    1) edit the file /public/js/jtrt-responsive-tables-public.js
    2) change line 41 to look like this var tableBPs = JSON.parse(jQuery(this).prev().val()) || JSON.parse(jQuery(this).prev().children(input).val());

    If this does not work let me know and I will try to work a custom solution for you. I will also mark this down on my TO DO list so I can have this fixed for the next update. Oh my gosh so many fixes/bugs to tackle now 😀

    Thanks again for bringing this up, it helps me learn and improve while ensuring everyone’s plugin works.

    John

    Plugin Author MyThirdEye

    (@mythirdeye)

    I have included a fix for this in the development branch. The update will be released soon.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Columns won’t hide’ is closed to new replies.