Adrian Lang has uploaded a new change for review. https://gerrit.wikimedia.org/r/174077
Change subject: Fix editing of empty sitelinklistviews ...................................................................... Fix editing of empty sitelinklistviews Change-Id: Ic9c6874ce8add3aa12dfed08211da4f5466345ac --- M lib/resources/jquery.wikibase/jquery.wikibase.sitelinklistview.js 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/77/174077/1 diff --git a/lib/resources/jquery.wikibase/jquery.wikibase.sitelinklistview.js b/lib/resources/jquery.wikibase/jquery.wikibase.sitelinklistview.js index cc9a911..520528b 100644 --- a/lib/resources/jquery.wikibase/jquery.wikibase.sitelinklistview.js +++ b/lib/resources/jquery.wikibase/jquery.wikibase.sitelinklistview.js @@ -502,7 +502,7 @@ foundOne = true; } } ); - if( !foundOne ) { + if( !foundOne && listview.items().length > 0 ) { lia.liInstance( $( listview.items()[0] ) ).startEditing(); } }, -- To view, visit https://gerrit.wikimedia.org/r/174077 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic9c6874ce8add3aa12dfed08211da4f5466345ac Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Adrian Lang <adrian.l...@wikimedia.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits