mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +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
|
$input_rc
|
||||||
.change(function(){
|
.change(function(){
|
||||||
var name = $(this).attr('name');
|
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()
|
.next('label').css('font-weight', 'normal').end()
|
||||||
.filter(':checked')
|
.filter(':checked')
|
||||||
.next('label').css('font-weight', 'bold').end();
|
.next('label').css('font-weight', 'bold').end();
|
||||||
|
|
@ -45,7 +46,7 @@ jQuery(function($){
|
||||||
.find('input:checkbox')
|
.find('input:checkbox')
|
||||||
.filter(function(){
|
.filter(function(){
|
||||||
var $this = $(this);
|
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'))
|
.prop('checked', $this.prop('checked'))
|
||||||
.end()
|
.end()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue