sourcebitsllc / chocolatechip-ui

Mobile Web App Framework
www.chocolatechip-ui.com
MIT License
617 stars 88 forks source link

Can not use $.UIPaging within a $.UITabBar #30

Closed mattgoldspink closed 10 years ago

mattgoldspink commented 10 years ago

My app includes a tab bar which has an article which itself contains a paging set of screens. Unfortunately when switching tabs the UITabBar removes the "current" and "previous" classes of all DOM elements, irrespective if they're a part of the tab bar or not.

This fix only removes the "current" and "previous" from all "article" and "nav" elements, therefore leaving the "section" elements inside the $.UIPaging element intact.

I'm sure there might be better way of doing this, but this has worked perfectly well for me so far.

sourcebits-robertbiggs commented 10 years ago

That's a good one. I'd never thought of a paging control in a tab bar, just the navigation list. Thanks for the contribution.