From: Derk-Jan Hartman Date: Thu, 26 Mar 2015 13:06:49 +0000 (+0100) Subject: LivePreview: Update the correct mw-editfooter-list X-Git-Tag: 1.31.0-rc.0~11987^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=8957607a8034b520f36f3d5bc1ec24f4c70b9269 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 --- 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['*'] );