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

24 lines
616 B
JavaScript
Raw Normal View History

const
mobile = require( 'mobile.startup' ),
View = mobile.View;
/**
* IssueNotice
*
* @class IssueNotice
* @extends View
*
* @param {IssueSummary} props
*/
function IssueNotice( props ) {
View.call( this, props );
}
OO.inheritClass( IssueNotice, View );
IssueNotice.prototype.tagName = 'li';
IssueNotice.prototype.template = mw.template.get( 'skins.minerva.scripts', 'IssueNotice.mustache' );
IssueNotice.prototype.postRender = function () {
View.prototype.postRender.apply( this, arguments );
this.$el.find( '.issue-notice' ).prepend( this.options.issue.iconElement );
};
module.exports = IssueNotice;