summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-10-26 14:04:54 -0500
committerDan McGee <dan@archlinux.org>2010-10-26 14:43:47 -0500
commit1a8114c00f22252b6e2b0c4a741f0bea1de5dd1d (patch)
treead19c256329ac89e18518a9576770ec119a249af /templates
parent576118c45ca4605eaf874fba3d95969c08a7c7d4 (diff)
Make package differences JS a bit more efficient
Use an id-based selector so we can get the necessary table rows to filter a lot more quickly than a lengthy CSS selector. Also use traversal rather than selectors when grabbing the package versions. This looked like a 3x-4x increase in speed while testing locally. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/packages/differences.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/packages/differences.html b/templates/packages/differences.html
index a5db39a6..b2a1be02 100644
--- a/templates/packages/differences.html
+++ b/templates/packages/differences.html
@@ -37,7 +37,7 @@
<th>{{ arch_b.name }} Version</th>
</tr>
</thead>
- <tbody>
+ <tbody id="tbody_differences">
{% for diff in differences %}
<tr class="{% cycle 'odd' 'even' %} {{ diff.classes }}">
<td>{{ diff.pkgname }}</td>