| 1 |
const |
| 2 |
mobile = require( 'mobile.startup' ), |
| 3 |
View = mobile.View; |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
function IssueNotice( props ) { |
| 15 |
View.call( this, props ); |
| 16 |
} |
| 17 |
OO.inheritClass( IssueNotice, View ); |
| 18 |
IssueNotice.prototype.tagName = 'li'; |
| 19 |
IssueNotice.prototype.template = mw.template.get( 'skins.minerva.scripts', 'IssueNotice.mustache' ); |
| 20 |
IssueNotice.prototype.postRender = function () { |
| 21 |
View.prototype.postRender.apply( this, arguments ); |
| 22 |
this.$el.find( '.issue-notice' ).prepend( this.options.issue.iconElement ); |
| 23 |
}; |
| 24 |
module.exports = IssueNotice; |