Mercurial > public > sg101
changeset 714:6ba401391cd5
Fix the javascript to select models on the search page.
The existing code would not work reliably after a few clicks.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 17 Sep 2013 20:23:23 -0500 |
parents | 859620244c4a |
children | 820e57e621e8 |
files | sg101/templates/search/search.html |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/sg101/templates/search/search.html Tue Sep 17 18:26:45 2013 -0500 +++ b/sg101/templates/search/search.html Tue Sep 17 20:23:23 2013 -0500 @@ -9,13 +9,13 @@ var chkboxes = $('#search-form input[type="checkbox"]'); $('#chk_all').click(function() { chkboxes.each(function(index) { - $(this).attr('checked', true); + $(this).prop('checked', true); }); return false; }); $('#chk_none').click(function() { chkboxes.each(function(index) { - $(this).attr('checked', false); + $(this).prop('checked', false); }); return false; });