Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bs tabs and faqs panels issue #4

Open
sayjeyhi opened this issue Nov 27, 2016 · 1 comment
Open

bs tabs and faqs panels issue #4

sayjeyhi opened this issue Nov 27, 2016 · 1 comment

Comments

@sayjeyhi
Copy link

bootstrap tabs not working on services page and showing new page .
faqs not showing panel body and open new page .

they have href=#xxxxx and show new page , but they should work with bootstrap js

@mallikarjuna909
Copy link

mallikarjuna909 commented Mar 7, 2017

Well, we can handle it many ways. one is here,

Just add "current-tab" directive to bootstrap tab navigation, and just show it by link function.

<a current-tab href="#xxx"> xxx</a>

Handle it in link function,

link: function (scope, element, attrs) {
            element.click(function (e) {
                e.preventDefault();
                $(element).tab('show');
            });
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants