Use actual booleans in API request

Popups' API query request specifies the string 'true' as the value for
some boolean request parameters, but that's functionally identical to
specifying boolean true -- both get encoded as param=true in the HTTP
request.

Change-Id: Icc5f4b8ef6faaffe4a23c964f8cd8c2582d28381
This commit is contained in:
S Page 2015-06-26 00:07:06 -07:00
parent 7713e343fe
commit 4ac8f1b48b

View file

@ -50,12 +50,12 @@
mw.popups.render.currentRequest = mw.popups.api.get( {
action: 'query',
prop: 'extracts|pageimages|revisions|info',
redirects: 'true',
exintro: 'true',
redirects: true,
exintro: true,
exsentences: 2,
// there is an added geometric limit on .mwe-popups-extract
// so that text does not overflow from the card
explaintext: 'true',
explaintext: true,
piprop: 'thumbnail',
pithumbsize: 300,
rvprop: 'timestamp',