diff options
author | Dan McGee <dan@archlinux.org> | 2011-01-15 06:39:57 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-15 06:39:57 +0100 |
commit | f10688e97664a6f6dab77d57510c9553b947c1e2 (patch) | |
tree | f8d20506f09a863d6abf1b48382214f1ca552938 | |
parent | d3e1b867e4262ad044a683678adf75cd72b79912 (diff) | |
download | archweb-f10688e97664a6f6dab77d57510c9553b947c1e2.tar.gz archweb-f10688e97664a6f6dab77d57510c9553b947c1e2.tar.xz |
Simplify JS selector for todo list complete links
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | templates/todolists/view.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/todolists/view.html b/templates/todolists/view.html index 0792d09..ec8c997 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]], |