@@ -21,14 +20,10 @@
- - - - @@ -43,7 +38,7 @@ - " id="attributeType"> + " id="attributeType"> @@ -94,29 +89,15 @@ $("#parent").change(function() { var parent = $(this).children("option:selected").val(); - if(parentID > 0) + if(parent == 0) { - if(parent == 0) - { - $("#attributeType").removeClass('hidden'); - } - else - { - $("#attributeType").addClass('hidden'); - - } + $("#attributeType").removeClass('hidden'); + $("#acl").attr('disabled', false); } else { - if(parent == 0) - { - $("#attributeType").removeClass('hidden'); - } - else - { - $("#attributeType").addClass('hidden'); - - } + $("#attributeType").addClass('hidden'); + $("#acl").attr('disabled', true); } });
programplan->parent;?> parent, "class='form-control chosen '");?>
programplan->name;?> name, "class='form-control'");?>
programplan->attribute;?> stage->typeList, $plan->attribute, "class='form-control'");?>