mw-editfooter-list is used by both templatesUsed and hiddencats, so
make sure we replace correct one.
Bug: T78834
Change-Id: I00be75ac6d68f96fb366b9561ec1ee0e1998f656
newList.push( li );
} );
- $editform.find( '.mw-editfooter-list' ).detach().empty().append( newList ).appendTo( '.templatesUsed' );
+ $editform.find( '.templatesUsed .mw-editfooter-list' ).detach().empty().append( newList ).appendTo( '.templatesUsed' );
}
if ( response.parse.limitreporthtml ) {
$( '.limitreport' ).html( response.parse.limitreporthtml['*'] );