Jdlrobson has uploaded a new change for review. https://gerrit.wikimedia.org/r/247537
Change subject: Infinite random ...................................................................... Infinite random Make http://localhost:8888/w/index.php/Special:Gather/explore/random an infinitely scrollable list. Note this version might repeat itself or crash when you scroll far enough but it's fun to think about no? Change-Id: Ie71593aca4affd72dc221065a21920fe3e237c47 --- M includes/specials/SpecialGather.php M resources/ext.gather.collections.models/Collection.js 2 files changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gather refs/changes/37/247537/1 diff --git a/includes/specials/SpecialGather.php b/includes/specials/SpecialGather.php index 86c5b2b..7f68a87 100644 --- a/includes/specials/SpecialGather.php +++ b/includes/specials/SpecialGather.php @@ -30,6 +30,8 @@ 'title' => wfMessage( 'gather-collection-random-title' ), 'description' => wfMessage( 'gather-collection-random-description' ), 'params' => array( + // Set a special parameter for use by client + 'dontstopbelieving' => 1, 'generator' => 'random', 'grnnamespace' => 0, 'grnlimit' => 10, diff --git a/resources/ext.gather.collections.models/Collection.js b/resources/ext.gather.collections.models/Collection.js index f24064d..4dd0388 100644 --- a/resources/ext.gather.collections.models/Collection.js +++ b/resources/ext.gather.collections.models/Collection.js @@ -54,7 +54,7 @@ if ( this.continueArgs ) { api.get( this.continueArgs ).done( function ( resp ) { // Record that there is nothing left to show. - if ( !resp.continue ) { + if ( !resp.continue && !self.continueArgs.dontstopbelieving ) { self.continueArgs = false; } else { $.extend( self.continueArgs, resp.continue ); -- To view, visit https://gerrit.wikimedia.org/r/247537 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie71593aca4affd72dc221065a21920fe3e237c47 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Gather Gerrit-Branch: dev Gerrit-Owner: Jdlrobson <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
