Ignore:
Timestamp:
08/07/12 11:20:28 (12 years ago)
Author:
gustavo
Message:

Ticket #2999 - Inconsistencia na interface de permissoes para contas compartilhadas.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/js/modal/modal.js

    r5133 r6953  
    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.