mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
Revert "New hooks for external integration to notification intiialization"
No usecase has been provided, and additionally the hooks
are not documented. Bartosz also points out that
mw.hook calls are asynchronous and memorized.
This reverts commit 9d3561afaf
.
Change-Id: If735b46996fab3def835a54223412ef6d3105395
This commit is contained in:
parent
9d3561afaf
commit
a09d4cbaf5
|
@ -1,26 +1,18 @@
|
|||
( function ( $, mw ) {
|
||||
'use strict';
|
||||
|
||||
var isInitialized = false;
|
||||
|
||||
mw.echo.special = {
|
||||
|
||||
notcontinue: null,
|
||||
header: '',
|
||||
processing: false,
|
||||
|
||||
isInitialized: function() {
|
||||
return isInitialized;
|
||||
},
|
||||
|
||||
/**
|
||||
* Initialize the property in special notification page.
|
||||
*/
|
||||
initialize: function () {
|
||||
var skin = mw.config.get('skin');
|
||||
|
||||
isInitialized = true;
|
||||
|
||||
// Convert more link into a button
|
||||
$( '#mw-echo-more' )
|
||||
.addClass( 'mw-ui-button mw-ui-primary' )
|
||||
|
@ -60,7 +52,6 @@
|
|||
$( '#contentSub' ).empty();
|
||||
}
|
||||
|
||||
mw.hook( 'ext.echo.special.onInitialize' ).fire( this );
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -109,7 +100,6 @@
|
|||
unread.push( id );
|
||||
}
|
||||
|
||||
mw.hook( 'ext.echo.special.onLoadMore' ).fire( $li, data );
|
||||
mw.echo.setupNotificationLogging( $li, 'archive' );
|
||||
|
||||
if ( $li.find( '.mw-echo-dismiss' ).length ) {
|
||||
|
|
Loading…
Reference in a new issue