twitter/bootstrap — Issue #454: tabs in IE7
Author: chrisnetonline
Created: 2011-10-20 14:55:42+00:00
State: open

IE7 reports the href attribute value with the full URL attached. To fix this use the following patch.

```
Index: C:/Projects/workmarket/frontend/webroot/app/scripts/bootstrap/bootstrap-tabs.js
===================================================================
--- C:/Projects/workmarket/frontend/webroot/app/scripts/bootstrap/bootstrap-tabs.js	(revision 14078)
+++ C:/Projects/workmarket/frontend/webroot/app/scripts/bootstrap/bootstrap-tabs.js	(working copy)
@@ -31,6 +31,8 @@
, $ul = $(e.liveFired)
, $controlled

+ href = href.substring(href.indexOf('#'));
+
if (/^#\w+/.test(href)) {
e.preventDefault()
```