mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-02 19:26:24 +00:00
Merge "Check for empty response"
This commit is contained in:
commit
b65954645f
|
@ -33,7 +33,7 @@
|
||||||
var
|
var
|
||||||
href = link.attr( 'href' ),
|
href = link.attr( 'href' ),
|
||||||
title = link.data( 'title' ),
|
title = link.data( 'title' ),
|
||||||
deferred = $.Deferred();
|
deferred = $.Deferred();
|
||||||
|
|
||||||
mw.popups.render.currentRequest = mw.popups.api.get( {
|
mw.popups.render.currentRequest = mw.popups.api.get( {
|
||||||
action: 'query',
|
action: 'query',
|
||||||
|
@ -57,6 +57,7 @@
|
||||||
mw.popups.render.currentRequest = undefined;
|
mw.popups.render.currentRequest = undefined;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
!re.query ||
|
||||||
!re.query.pages ||
|
!re.query.pages ||
|
||||||
!re.query.pages[ re.query.pageids[ 0 ] ].extract ||
|
!re.query.pages[ re.query.pageids[ 0 ] ].extract ||
|
||||||
re.query.pages[ re.query.pageids[ 0 ] ].extract === ''
|
re.query.pages[ re.query.pageids[ 0 ] ].extract === ''
|
||||||
|
|
Loading…
Reference in a new issue