mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-11 07:16:08 +00:00
eff7dc95e6
Breaks EventLogging as the old schema is not compatible with these
new properties. We will reapply the patch later when in a better state.
My bad for merging.
This reverts commit ca20031a0e
.
Change-Id: Ia961e0f99339f9045af9d0a4653599a48518cc95
16 lines
388 B
JavaScript
16 lines
388 B
JavaScript
( function ( $, mw ) {
|
|
/**
|
|
* Log the popup event as defined in the schema
|
|
*
|
|
* https://meta.wikimedia.org/wiki/Schema:Popups
|
|
*/
|
|
var schemaPopups = new mw.eventLog.Schema(
|
|
'Popups',
|
|
mw.config.get( 'wgPopupsSchemaPopupsSamplingRate', 0 )
|
|
);
|
|
|
|
mw.trackSubscribe( 'ext.popups.schemaPopups', function ( topic, data ) {
|
|
schemaPopups.log( data );
|
|
} );
|
|
} )( jQuery, mediaWiki );
|