mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
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:
parent
90d123900d
commit
1060a31f1a
1 changed files with 3 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue