mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-18 03:31:34 +00:00
eeebb86270
Replace with View.$el.find. Bug: T216264 Change-Id: I78045c410c168bf458ab8f5537036711fc5b577c
27 lines
670 B
JavaScript
27 lines
670 B
JavaScript
( 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.$el.find( '.issue-notice' ).prepend( this.options.issue.icon.$el );
|
|
}
|
|
} );
|
|
M.define( 'skins.minerva.scripts/IssueNotice', IssueNotice );
|
|
}( mw.mobileFrontend ) );
|