projectwonder/wonder — pull request #137 by paulhoadley (2012-03-27 01:42:00+00:00)
Title: AjaxFlickrBatchNavigation should offer 'batchSizes' and 'showBatchSizes' bindings

`AjaxFlickrBatchNavigation` is a subclass of `ERXFlickrBatchNavigation` but drops support for a couple of handy bindings from its parent. This patch makes the template look much more like that of `ERXFlickrBatchNavigation`.

The result should be almost indistinguishable from the current `AjaxFlickrBatchNavigation` if you don't use those bindings, except in the case where the entire list fits on a single page. This patch reverts to the behaviour of `ERXFlickrBatchNavigation`, which avoids displaying any content at all for this component in that case. This change is fairly arbitrary, and might not be to everyone's taste, but it does make it more consistent with the behaviour of `ERXFlickrBatchNavigation`.

Template code was provided to the wonder-disc list by Ted Archibald.