mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #480 from mateusz/minor-tabset-exception
BUGFIX: cater for elements without href
This commit is contained in:
commit
fa6c39bc2c
@ -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'));
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user