public/js/user_management.js
//These following conditions are for number 5 (see above)
These following conditions are for number 5
These following conditions are for number 5
function parenttrap(){  
    for(ctr=0;ctr<psize;ctr++){
        if($('option.'+parents[ctr]+'child.choice').length==0)
        {
            $('option.'+parents[ctr]+'parent.choice').removeClass('choice').addClass('select').detach().appendTo('#to');
        }
    }
}
function parenttrap ( ) { for ( ctr = 0 ; ctr < psize ; ctr ++ ) { if ( $ ( 'option.' + parents [ ctr ] + 'child.choice' ) . length == 0 ) { $ ( 'option.' + parents [ ctr ] + 'parent.choice' ) . removeClass ( 'choice' ) . addClass ( 'select' ) . detach ( ) . appendTo ( '#to' ) ; } } }
These following conditions are for number 5 (see above)
These following conditions are for number 5 ( see above )