Ignore:
Timestamp:
08/09/12 10:17:01 (12 years ago)
Author:
eduardow
Message:

Ticket #2999 - Inconsistencia na interface de permissões para contas compartilhadas.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoAdmin1_2/js/modal/modal.js

    r5133 r6971  
    102102        objOverlay.style.display = 'block'; 
    103103        objLightbox.style.display = ''; 
     104 
     105        //SETA REGRAS DOS CHECKBOX's  
     106                  
     107    var checkboxes = $(objLightbox).find("input:checkbox");  
     108    checkboxes.filter(".shared-required").change(function(e){  
     109            if(!$("#ea_select_owners option:selected").length){  
     110                    return;  
     111            }  
     112            var check = $(this).attr("checked") == undefined ? false : true;  
     113            if(check){  
     114                    checkboxes.removeAttr("disabled");  
     115            }else{  
     116                    checkboxes.not(".shared-required").attr("disabled", "disabled");  
     117                    checkboxes.removeAttr("checked");  
     118            }  
     119    });  
     120 
     121     
    104122} 
    105123 
Note: See TracChangeset for help on using the changeset viewer.