mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 05:44:36 +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;
|
return $this->content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
|
public function setId($id)
|
||||||
|
{
|
||||||
|
return parent::setId(str_replace(' ', '-', (string) $id));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the header level
|
* Set the header level
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user