# HG changeset patch # User Brian Neal # Date 1379467403 18000 # Node ID 6ba401391cd5c29ce0383bf3c2dec95abda11f1c # Parent 859620244c4aa8a7494db33329e9144653ffc5de Fix the javascript to select models on the search page. The existing code would not work reliably after a few clicks. diff -r 859620244c4a -r 6ba401391cd5 sg101/templates/search/search.html --- 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; });