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
|
2020-06-02 21:21:44 +00:00
|
|
|
*
|
2018-11-24 01:49:47 +00:00
|
|
|
* @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',
|
2019-04-25 02:34:01 +00:00
|
|
|
template: mw.template.get( 'skins.minerva.scripts', 'IssueNotice.mustache' ),
|
2018-11-24 01:49:47 +00:00
|
|
|
postRender: function () {
|
|
|
|
View.prototype.postRender.apply( this, arguments );
|
2019-02-15 19:04:11 +00:00
|
|
|
this.$el.find( '.issue-notice' ).prepend( this.options.issue.icon.$el );
|
2018-11-24 01:49:47 +00:00
|
|
|
}
|
|
|
|
} );
|
2019-07-02 21:10:10 +00:00
|
|
|
module.exports = IssueNotice;
|
2019-09-27 18:53:01 +00:00
|
|
|
|
|
|
|
// eslint-disable-next-line no-restricted-properties
|
2018-11-24 01:49:47 +00:00
|
|
|
}( mw.mobileFrontend ) );
|