Permalink
Browse files

Merge pull request #480 from mateusz/minor-tabset-exception

BUGFIX: cater for elements without href
  • Loading branch information...
2 parents 29e04a1 + bbb08df commit fa6c39bc2c4ffd86e02bf4a4548794b7ec895526 @halkyon halkyon committed May 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 javascript/TabSet.js
View
@@ -26,8 +26,8 @@
*/
rewriteHashlinks: function() {
$(this).find('ul a').each(function() {
- var href = $(this).attr('href').replace(/.*(#.*)/, '$1');
- if(href) $(this).attr('href', href);
+ var href = $(this).attr('href');
+ if(href) $(this).attr('href', href.replace(/.*(#.*)/, '$1'));
});
}
});

0 comments on commit fa6c39b

Please sign in to comment.