Skip to content

Instantly share code, notes, and snippets.

@smith
Created October 23, 2009 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smith/217037 to your computer and use it in GitHub Desktop.
Save smith/217037 to your computer and use it in GitHub Desktop.
diff --git a/src/tabs.js b/src/tabs.js
index 7efbe24..fbbb5c9 100644
--- a/src/tabs.js
+++ b/src/tabs.js
@@ -44,6 +44,8 @@ Control.Tabs = Class.create({
return (/^#/).exec((Prototype.Browser.WebKit ? decodeURIComponent(link.href) : link.href).replace(window.location.href.split('#')[0],''));
}).each(function(link){
this.addTab(link);
+ link.writeAttribute("href",null);
+ link.setStyle({cursor:'pointer'});
}.bind(this));
this.containers.values().each(Element.hide);
if(this.options.defaultTab == 'first') {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment