2018-11-24 01:49:47 +00:00
|
|
|
( function ( M ) {
|
2019-02-08 17:04:26 +00:00
|
|
|
var
|
|
|
|
mobile = M.require( 'mobile.startup' ),
|
|
|
|
mfExtend = mobile.mfExtend,
|
|
|
|
View = mobile.View;
|
2018-11-24 01:49:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* IssueNotice
|
|
|
|
* @class IssueNotice
|
|
|
|
* @extends View
|
|
|
|
*
|
|
|
|
* @param {IssueSummary} props
|
|
|
|
*/
|
|
|
|
function IssueNotice( props ) {
|
|
|
|
View.call( this, props );
|
|
|
|
}
|
2019-02-08 17:04:26 +00:00
|
|
|
mfExtend( IssueNotice, View, {
|
2018-11-24 01:49:47 +00:00
|
|
|
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 ) );
|