Support shared DB version of Commons definition

Supporting production is Hard Work (tm)

Change-Id: I57b1ea945711f6fe76697927641bf4e805be15cf
This commit is contained in:
Mark Holmquist 2014-05-30 13:12:49 -07:00
parent 1db51f25ab
commit ff527cd0f3

View file

@ -344,7 +344,8 @@
'original-title': descPagePopupMessage // needed by jquery.tipsy
} );
if ( imageInfo.repo === 'wikimediacommons' ) {
if ( imageInfo.repo === 'wikimediacommons' || (
imageInfo.repo === 'shared' && repoInfo.displayName === 'Wikimedia Commons' ) ) {
this.buttons.$descriptionPage.addClass( 'mw-mmv-stripe-button-commons' );
} else {
this.buttons.$descriptionPage.addClass( 'mw-mmv-stripe-button-dynamic' );