mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #824 from nyeholt/tab_null_pointer
BUG Fixed possible reference to null string
This commit is contained in:
commit
61148834f2
@ -945,8 +945,8 @@ jQuery.noConflict();
|
|||||||
*/
|
*/
|
||||||
rewriteHashlinks: function() {
|
rewriteHashlinks: function() {
|
||||||
$(this).find('ul a').each(function() {
|
$(this).find('ul a').each(function() {
|
||||||
var href = $(this).attr('href').replace(/.*(#.*)/, '$1');
|
var href = $(this).attr('href');
|
||||||
if(href) $(this).attr('href', href);
|
if(href) $(this).attr('href', href.replace(/.*(#.*)/, '$1'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user