mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-25 00:05:29 +00:00
Merge "Hygiene: Dont quote object property keys"
This commit is contained in:
commit
8635a9cc9f
|
@ -63,12 +63,12 @@
|
||||||
notifications, data, container, $li, that = this, unread = [], apiData;
|
notifications, data, container, $li, that = this, unread = [], apiData;
|
||||||
|
|
||||||
apiData = {
|
apiData = {
|
||||||
'action' : 'query',
|
action : 'query',
|
||||||
'meta' : 'notifications',
|
meta : 'notifications',
|
||||||
'notformat' : 'html',
|
notformat : 'html',
|
||||||
'notprop' : 'index|list',
|
notprop : 'index|list',
|
||||||
'notcontinue': this.notcontinue,
|
notcontinue: this.notcontinue,
|
||||||
'notlimit': mw.config.get( 'wgEchoDisplayNum' ),
|
notlimit: mw.config.get( 'wgEchoDisplayNum' ),
|
||||||
uselang: useLang
|
uselang: useLang
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -128,9 +128,9 @@
|
||||||
api = new mw.Api(), that = this;
|
api = new mw.Api(), that = this;
|
||||||
|
|
||||||
api.post( {
|
api.post( {
|
||||||
'action' : 'echomarkread',
|
action : 'echomarkread',
|
||||||
'list' : unread.join( '|' ),
|
list : unread.join( '|' ),
|
||||||
'token': mw.user.tokens.get( 'editToken' ),
|
token: mw.user.tokens.get( 'editToken' ),
|
||||||
uselang: useLang
|
uselang: useLang
|
||||||
} ).done( function ( result ) {
|
} ).done( function ( result ) {
|
||||||
// update the badge if the link is enabled
|
// update the badge if the link is enabled
|
||||||
|
|
Loading…
Reference in a new issue