mediawiki-skins-MinervaNeue/resources/skins.minerva.scripts/page-issues/overlay/IssueNotice.js

27 lines
663 B
JavaScript
Raw Normal View History

( 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.hogan' ),
postRender: function () {
View.prototype.postRender.apply( this, arguments );
this.$( '.issue-notice' ).prepend( this.options.issue.icon.$el );
}
} );
M.define( 'skins.minerva.scripts/IssueNotice', IssueNotice );
}( mw.mobileFrontend ) );