Changing the URL anchor when switching tabs.
-
Chaz Meyers
I'm not sure why, but it wouldn't let me add the ticket with the patch. Just in case it doesn't work again, here's a copy/paste of it:
diff --git a/src/tabs.js b/src/tabs.js
index 7efbe24..133c1b8 100644
--- a/src/tabs.js +++ b/src/tabs.js @@ -83,10 +83,8 @@ Control.Tabs = Class.create({throw "Control.Tabs: #" + link.key + " was not found on the page."; } this.containers.set(link.key,container); link[this.options.hover ? 'onmouseover' : 'onclick'] = function(link){-
if(window.event) { -
Event.stop(window.event); } this.setActiveTab(link); -
return false; -
}, setActiveTab: function(link){return true; }.bind(this,link);
-
-
Chaz Meyers
OK. That was awful too. Sorry for all the noise.
Here's a link to it: http://www.chazmeyers.com/code/tabs.js.diff
-
Nathan L Smith
- State changed from new to invalid
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.