From 8957607a8034b520f36f3d5bc1ec24f4c70b9269 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Thu, 26 Mar 2015 14:06:49 +0100 Subject: [PATCH] LivePreview: Update the correct mw-editfooter-list mw-editfooter-list is used by both templatesUsed and hiddencats, so make sure we replace correct one. Bug: T78834 Change-Id: I00be75ac6d68f96fb366b9561ec1ee0e1998f656 --- resources/src/mediawiki.action/mediawiki.action.edit.preview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/src/mediawiki.action/mediawiki.action.edit.preview.js b/resources/src/mediawiki.action/mediawiki.action.edit.preview.js index 3a6110d253..65ae0f0b59 100644 --- a/resources/src/mediawiki.action/mediawiki.action.edit.preview.js +++ b/resources/src/mediawiki.action/mediawiki.action.edit.preview.js @@ -159,7 +159,7 @@ 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['*'] ); -- 2.20.1