mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-23 23:13:29 +00:00
Use $( '#t-permalink' ).parent() instead of $( '#mw-panel' )
The selector '#mw-panel' from skin Vector and some other skins is not stable to use and not available on other skins like Vector-2022. The update of '#mw-panel' breaks CollapsibleVector: T211557. Using $( '#t-permalink' ).parent() is also a dirty hack but it probably works on all skins. The .parent() also updates siblings like '#t-urlshortener' from extension UrlShortener. Also add $( '#ca-delete' ).parent() to update the other portlet links. Bug: T211557 Change-Id: I084c93e8fe7c7663d9de8a39433a9e92a3827196
This commit is contained in:
parent
af340e9ae9
commit
a8d1a07c0c
|
@ -57,7 +57,8 @@ $.extend( DiffPage.prototype, {
|
|||
$( '#mw-content-text' ).replaceWith( $contentText );
|
||||
$( '.printfooter' ).replaceWith( $data.find( '.printfooter' ) );
|
||||
$( '#catlinks' ).replaceWith( $data.find( '#catlinks' ) );
|
||||
$( '#mw-panel' ).replaceWith( $data.find( '#mw-panel' ) );
|
||||
$( '#t-permalink' ).parent().replaceWith( $data.find( '#t-permalink' ).parent() );
|
||||
$( '#ca-delete' ).parent().replaceWith( $data.find( '#ca-delete' ).parent() );
|
||||
// Update edit link
|
||||
$( '#ca-edit a, #ca-ve-edit a' ).each( function () {
|
||||
const uri = new mw.Uri( $( this ).attr( 'href' ) );
|
||||
|
|
Loading…
Reference in a new issue