Twitter bootstrap accordion not working with Sammy.js

流过昼夜 提交于 2020-01-15 18:47:02

问题


I am trying to use twitter accordion in single page app but it has conflict with sammy.js

<a class="ac-toggle" data-toggle="collapse" data-parent="#ac2" href="#collapseOne">Company</a>

When I try to collapse it change the url. I have ignore the route in sammy.js but it did not work. Is there other method of this using jquery or ignore the route in sammy.js ?

 this.get(/\#collapse(.*)/, function (cx, match) {
    ????
 });

来源:https://stackoverflow.com/questions/14284022/twitter-bootstrap-accordion-not-working-with-sammy-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!