summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-01-14 23:39:57 -0600
committerDan McGee <dan@archlinux.org>2011-01-14 23:39:57 -0600
commitf10688e97664a6f6dab77d57510c9553b947c1e2 (patch)
treef8d20506f09a863d6abf1b48382214f1ca552938
parentd3e1b867e4262ad044a683678adf75cd72b79912 (diff)
Simplify JS selector for todo list complete links
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--templates/todolists/view.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/todolists/view.html b/templates/todolists/view.html
index 0792d096..ec8c997a 100644
--- a/templates/todolists/view.html
+++ b/templates/todolists/view.html
@@ -40,10 +40,10 @@
<td>
{% if pkg.complete %}
<a href="/todo/flag/{{ list.id }}/{{ pkg.id }}/"
- class="complete" title="Toggle completion status">Complete</a>
+ class="status-link complete" title="Toggle completion status">Complete</a>
{% else %}
<a href="/todo/flag/{{ list.id }}/{{ pkg.id }}/"
- class="incomplete" title="Toggle completion status">Incomplete</a>
+ class="status-link incomplete" title="Toggle completion status">Incomplete</a>
{% endif %}
</td>
</tr>
@@ -56,7 +56,7 @@
<script type="text/javascript" src="/media/archweb.js"></script>
<script type="text/javascript">
$(document).ready(function() {
- $('a[href*=todo/flag]').click(todolist_flag);
+ $('a.status-link').click(todolist_flag);
$(".results").tablesorter({
widgets: ['zebra'],
sortList: [[0,0], [1,0]],