$wgUnwatchedPageThreshold = false;
/**
- * Recent changes flag, shown in Recentchanges and watchlist
+ * Flags (letter symbols) shown in recent changes and watchlist to indicate
+ * certain types of edits.
*
- * Adding a new one:
- * $wgRecentChangesFlags['flag'] => array( 'letter-msg', 'tooltip-msg' );
- * 'class' allows to set a css class different than the flag name
+ * To register a new one:
+ * @code
+ * $wgRecentChangesFlags['flag'] => array(
+ * 'letter' => 'letter-msg',
+ * 'title' => 'tooltip-msg'
+ * );
+ * @endcode
+ *
+ * Optional 'class' allows to set a css class different than the flag name.
*
* @since 1.22
*/
if ( !this.sortDisabled ) {
$( this )
.addClass( table.config.cssHeader )
- .attr( 'title', msg[1] )
- .prop( 'tabIndex', 0 ).attr( 'role', 'button' );
+ .prop( 'tabIndex', 0 )
+ .attr( {
+ role: 'button',
+ title: msg[1]
+ } );
}
// add cell to headerList