alphagov/whitehall — pull request #1630 by fofr (2014-07-28 14:19:56+00:00)
Title: Stop nesting filter search results when dynamically loading

* The JavaScript takes the HTML response and embeds it within the container with a search_results ID. This leads to nested span9 elements appearing within the page and duplicate elements with the same ID. This had the effect of showing a thinner results table when filtering in-page.
* Use number_with_delimiter for readable numbers
* Put the number and text into a left-to-right readable form, ie “3,956 documents” reads better than “Documents 3956”

(I suggest adding `&w=1` to the Github URL when reviewing code changes)

Before:
![screen shot 2014-07-28 at 15 18 20](https://cloud.githubusercontent.com/assets/319055/3721620/19732fa4-1662-11e4-96e1-4ee9b46cc575.png)

After:
![screen shot 2014-07-28 at 15 17 36](https://cloud.githubusercontent.com/assets/319055/3721619/174da29a-1662-11e4-9fa8-243e148e98c4.png)