Make sure partials always have a wrapping <div>

The diffDOM Javascript sometimes throws an error if it can’t calculate
a diff between the original content of the page and the updated HTML
delivered via AJAX. The problem seems to be when there’s not one,
consistent top-level element for it to base its calculations on.

This commit:
- makes sure that all AJAX-delivered partials have a wrapping `<div>`
- that this `<div>` has a consistent class name to make it clear why
  it’s there
This commit is contained in:
Chris Hill-Scott
2016-09-01 11:22:22 +01:00
parent 0967706aed
commit 8c8f321a11
6 changed files with 67 additions and 65 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{% from "components/pill.html" import pill %}
<div class="bottom-gutter">
<div class="bottom-gutter ajax-block-container">
{{ pill('Status', counts, request.args.get('status', '')) }}
</div>