1 function tickAll(section){
2 $("input[name='" + section + "']").prop("checked", true);
3 $("#" + section.slice(0,-1) + "ALL").prop("checked", true);
4 $("input[name='" + section + "']").prop("disabled", true);
5 $("#" + section.slice(0,-1) + "ALL").prop("disabled", false);
8 function untickAll(section){
9 $("input[name='" + section + "']").prop("checked", false);
10 $("input[name='" + section + "']").prop("disabled", false);
13 $(document).ready(function(){
15 $("#moduleALL").change(function(){
16 if ( this.checked == true ){
23 $("input[name='modules']").change(function(){
24 if ( $("input[name='modules']:checked").length == $("input[name='modules']").length - 1 ){
30 $("#actionALL").change(function(){
31 if ( this.checked == true ){
38 $("input[name='actions']").change(function(){
39 if ( $("input[name='actions']:checked").length == $("input[name='actions']").length - 1 ){
44 tickAll('interfaces');
45 $("#interfaceALL").change(function(){
46 if ( this.checked == true ){
47 tickAll('interfaces');
49 untickAll('interfaces');
53 $("input[name='interfaces']").change(function(){
54 if ( $("input[name='interfaces']:checked").length == $("input[name='interfaces']").length - 1 ){
55 tickAll('interfaces');