summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-01-03 14:18:22 -0600
committerDan McGee <dan@archlinux.org>2012-01-03 14:18:22 -0600
commit3b545d23b6ddb0ee843e9f792863615d69ceca5f (patch)
treedbf177cc11dc9fb1d23869cf1c1feb828c6d6cc4 /templates
parent64da32a3f3312331537eb34ab704eec7ebf14221 (diff)
Add checkbox range selection to stale relations page
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/packages/stale_relations.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/packages/stale_relations.html b/templates/packages/stale_relations.html
index 0186d08e..80e912c0 100644
--- a/templates/packages/stale_relations.html
+++ b/templates/packages/stale_relations.html
@@ -23,7 +23,7 @@
<tbody>
{% for relation in inactive_user %}
<tr class="{% cycle 'odd' 'even' %}">
- <td><input type="checkbox" name="relation_id" value="{{ relation.id }}" /></td>
+ <td><input type="checkbox" class="relation-checkbox" name="relation_id" value="{{ relation.id }}" /></td>
<td>{{ relation.pkgbase }}</td>
<td class="wrap">{% for pkg in relation.get_associated_packages %}
<a href="{{ pkg.get_absolute_url }}"
@@ -54,7 +54,7 @@
<tbody>
{% for relation in missing_pkgbase %}
<tr class="{% cycle 'odd' 'even' %}">
- <td><input type="checkbox" name="relation_id" value="{{ relation.id }}" /></td>
+ <td><input type="checkbox" class="relation-checkbox" name="relation_id" value="{{ relation.id }}" /></td>
<td>{{ relation.pkgbase }}</td>
<td>{{ relation.user.get_full_name }}</td>
<td>{{ relation.get_type_display }}</td>
@@ -83,7 +83,7 @@
<tbody>
{% for relation in wrong_permissions %}
<tr class="{% cycle 'odd' 'even' %}">
- <td><input type="checkbox" name="relation_id" value="{{ relation.id }}" /></td>
+ <td><input type="checkbox" class="relation-checkbox" name="relation_id" value="{{ relation.id }}" /></td>
<td>{{ relation.pkgbase }}</td>
<td class="wrap">{% for pkg in relation.get_associated_packages %}
<a href="{{ pkg.get_absolute_url }}"
@@ -114,5 +114,9 @@ $(document).ready(function() {
$('#missing-pkgbase:not(:has(tbody tr.empty))').tablesorter({widgets: ['zebra'], headers: { 0: { sorter: false } }, sortList: [[1,0]]});
});
$('#wrong-permissions:not(:has(tbody tr.empty))').tablesorter({widgets: ['zebra'], headers: { 0: { sorter: false } }, sortList: [[3,0]]});
+ $('table.results').bind('sortEnd', function() {
+ $('input.relation-checkbox').enableCheckboxRangeSelection();
+ });
+ $('input.relation-checkbox').enableCheckboxRangeSelection();
</script>
{% endblock %}