mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 23:55:53 +00:00
Fix selector for add topic button
Bug: T267444 Change-Id: Icd75f16c794f6f990a194fd57f99490934ded9de
This commit is contained in:
parent
39617aeb3f
commit
2f9cf813fe
|
@ -481,7 +481,8 @@ function makeStickyHeaderFunctional(
|
|||
document.body.classList.remove( STICKY_HEADER_VISIBLE_CLASS );
|
||||
stickyObserver.unobserve( stickyIntersection );
|
||||
};
|
||||
const addSection = document.querySelector( '#ca-addsection a' );
|
||||
// When VectorPromoteAddTopic is set, #ca-addsection is the link itself
|
||||
const addSection = document.querySelector( '#ca-addsection a' ) || document.querySelector( 'a#ca-addsection' );
|
||||
|
||||
prepareEditIcons(
|
||||
header,
|
||||
|
|
Loading…
Reference in a new issue