mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Fix close button: Test the anchor if it belongs to us
This commit is contained in:
parent
9bf8488f68
commit
cd11cf3469
@ -415,7 +415,8 @@
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
// This is an anchor only
|
// This is an anchor only
|
||||||
if (href.substr(0, 1) === '#' && href.substr(1, 1) !== '!') {
|
if (href.substr(0, 1) === '#' && href.length > 1
|
||||||
|
&& href.substr(1, 1) !== '!') {
|
||||||
self.handleAnchor(href);
|
self.handleAnchor(href);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user