Fix credit fallback not updating when switching image

jQuery object gets converted to "[object Object]" which results in an ununique array key in HUP.htmlToTextWithTags cache.textWithTags, instead pass HTML string.

Bug: T308958
Change-Id: If6fc934d263107a0d3346ccea8e91cade72db666
This commit is contained in:
dylsss 2022-06-07 23:24:53 +01:00
parent 564800ac3e
commit 9d265ee1d0

View file

@ -496,6 +496,7 @@
.addClass( 'mw-mmv-credit-fallback' )
.prop( 'href', filepageUrl )
.text( mw.message( 'multimediaviewer-credit-fallback' ).plain() )
.get( 0 ).outerHTML
);
}