mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-17 11:13:34 +00:00
ef5003f310
The MobileFrontend dependency in Minerva is problematic. Code that Minerva needs should live in core. MobileFrontend should load code on all skins when they operate on a mobile domain. This eslint check reminds developers of this in a hope it encourages more upstreaming to core when possible. Of course disabling is also an option, but this check will at least make us aware of when we are moving further away from the goal. Change-Id: I62183c9aefc81053e4ad81fb746decef2dd24b44
29 lines
695 B
JavaScript
29 lines
695 B
JavaScript
( function ( M ) {
|
|
var
|
|
mobile = M.require( 'mobile.startup' ),
|
|
mfExtend = mobile.mfExtend,
|
|
View = mobile.View;
|
|
|
|
/**
|
|
* IssueNotice
|
|
* @class IssueNotice
|
|
* @extends View
|
|
*
|
|
* @param {IssueSummary} props
|
|
*/
|
|
function IssueNotice( props ) {
|
|
View.call( this, props );
|
|
}
|
|
mfExtend( IssueNotice, View, {
|
|
tagName: 'li',
|
|
template: mw.template.get( 'skins.minerva.scripts', 'IssueNotice.mustache' ),
|
|
postRender: function () {
|
|
View.prototype.postRender.apply( this, arguments );
|
|
this.$el.find( '.issue-notice' ).prepend( this.options.issue.icon.$el );
|
|
}
|
|
} );
|
|
module.exports = IssueNotice;
|
|
|
|
// eslint-disable-next-line no-restricted-properties
|
|
}( mw.mobileFrontend ) );
|