BUGFIX: CRM "select all" and "select none" doesn't work when the crm manages multiple models.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@71568 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Normann Lou 2009-02-10 00:53:54 +00:00 committed by Sam Minnee
parent aba093c176
commit 5328056fcd

View File

@ -125,13 +125,13 @@ $(document).ready(function() {
});
$('a.form_frontend_function.tick_all_result_assembly').click(function(){
var resultAssembly = $('div#ResultAssembly ul li input');
var resultAssembly = $(this).prevAll('div#ResultAssembly').find('ul li input');
resultAssembly.attr('checked', 'checked');
return false;
});
$('a.form_frontend_function.untick_all_result_assembly').click(function(){
var resultAssembly = $('div#ResultAssembly ul li input');
var resultAssembly = $(this).prevAll('div#ResultAssembly').find('ul li input');
resultAssembly.removeAttr('checked');
return false;
});