twitter/bootstrap — pull request #2212 by tagliala (2012-02-23 18:10:04+00:00)
Title: Active link to modal div when scrollspy is used fix

Dear all,

I found a wrong behaviour when using both modals and scrollspy in the same navbar.

If you put in a navbar a link to a modal - let's say to #myModal - and scrollspy enabled, the #myModal link is rendered as active.

This edit prevents the scrollspy plugin to check for links to modal divs, replacing line 50 of js/bootstrap-scrollspy.js with

```js
return /^#\w/.test(href) && $(href).length && !($(this).attr('data-toggle') == 'modal') ? href : null
```

Maybe a better solution is possible

Best Regards

GT