mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 21:34:28 +02:00
doc: Replace whitespaces with - for section IDs
Fixes jQuery selector issues when jumping to an anchor.
This commit is contained in:
parent
b902913220
commit
5ef8f95e5b
@ -88,6 +88,14 @@ class DocSection extends TreeNode
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function setId($id)
|
||||
{
|
||||
return parent::setId(str_replace(' ', '-', (string) $id));
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the header level
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user