Toggle all checkbox except for disabled checkboxes.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8831 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-08-22 09:41:11 +00:00
parent 90d123900d
commit 1060a31f1a

View file

@ -29,7 +29,8 @@ jQuery(function($){
$input_rc
.change(function(){
var name = $(this).attr('name');
$input_rc.filter(function(){ return this.name == name })
$input_rc
.filter(function(){ return this.name == name })
.next('label').css('font-weight', 'normal').end()
.filter(':checked')
.next('label').css('font-weight', 'bold').end();
@ -45,7 +46,7 @@ jQuery(function($){
.find('input:checkbox')
.filter(function(){
var $this = $(this);
return ($this.attr('name') == name) || ($this.data('name') == name);
return !$this.prop('disabled') && ($this.attr('name') == name) || ($this.data('name') == name);
})
.prop('checked', $this.prop('checked'))
.end()