issue 912 add public item option.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@10987 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-08-06 11:58:47 +00:00
parent f8cb63a526
commit 2a268b8f37
7 changed files with 41 additions and 14 deletions

View file

@ -62,7 +62,7 @@ jQuery(function($){
suForm.slideUp(200);
}
});
suForm.find(':checkbox').each(function(){
suForm.find(':checkbox[name="usable_list[]"]').each(function(){
var $i = $(this);
$i.change(function(){
if($i.is(':checked')){
@ -70,10 +70,18 @@ jQuery(function($){
.find(':radio, :text')
.removeAttr('disabled')
.end()
.find(':radio[value=option]').attr('checked', 'checked');
.find(':radio[value=option]').attr('checked', 'checked')
.end()
.next('td')
.find(':input[value=Y]').removeAttr('disabled').attr('checked', 'checked');
} else {
$i.parent('td').next('td').find(':radio, :text').attr('disabled','disabled').removeAttr('checked').next('label').css('fontWeight','normal');
$i.parent('td').next('td')
.find(':radio, :text').attr('disabled','disabled').removeAttr('checked')
.next('label').css('fontWeight','normal').end()
.end()
.next('td')
.find(':input[value=Y]').removeAttr('checked').attr('disabled', 'disabled');
}
});
});