Changeset 13530

Show
Ignore:
Timestamp:
11/21/07 12:06:31 (1 year ago)
Author:
adrenalin
Message:

User interface improvements with jQuery

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.admin.user/documentation/CHANGES

    r13511 r13530  
    99- All items marked with "+" represent completly new features. 
    1010 
     112007-11-21 adrenalin 
     12  -  
     13 
    11142007-11-20 adrenalin 
    1215  ! Added batch processing for new passwords 
  • trunk/midcom/midcom.admin.user/static/jquery.midcom_admin_user.js

    r13529 r13530  
    1919            $j(this).attr('checked', ''); 
    2020        } 
     21         
     22        // Trigger the onChange event of the input 
     23        $j(this).change(); 
    2124    }); 
    2225} 
     
    4043            $j(this).attr('checked', 'checked'); 
    4144        } 
     45         
     46        // Trigger the onChange event of the input 
     47        $j(this).change(); 
    4248    }); 
    4349     
    4450    $j(this).attr('checked', ''); 
    4551} 
     52 
     53$j(document).ready(function() 
     54{ 
     55    $j('#midcom_admin_user_batch_process tbody tr').find('td:first').addClass('first'); 
     56    $j('#midcom_admin_user_batch_process tbody tr').find('td:last').addClass('last'); 
     57     
     58    $j("#midcom_admin_user_batch_process tbody input[@type='checkbox']").each(function(i) 
     59    { 
     60        $j(this).change(function() 
     61        { 
     62            var object = this.parentNode; 
     63            var n = 0; 
     64             
     65            while (!object.tagName.match(/tr/i)) 
     66            { 
     67                object = object.parentNode; 
     68                 
     69                // Protect against infinite loops 
     70                if (n > 20) 
     71                { 
     72                    return; 
     73                } 
     74            } 
     75             
     76            if ($j(this).attr('checked')) 
     77            { 
     78                $j(object).addClass('row_selected'); 
     79            } 
     80            else 
     81            { 
     82                $j(object).removeClass('row_selected'); 
     83            } 
     84        }); 
     85    }); 
     86}); 
  • trunk/midcom/midcom.admin.user/static/usermgmt.css

    r13529 r13530  
    1313{ 
    1414    border-collapse: collapse; 
     15    border-spacing: 0; 
    1516} 
    1617 
     
    5455} 
    5556 
     57table.midcom_admin_user_search_results tr.row_selected td 
     58{ 
     59    background-color: #C0CEDE; 
     60    color: #000000; 
     61} 
     62 
     63table.midcom_admin_user_search_results tr.even.row_selected td 
     64{ 
     65    background-color: #DFE6EE; 
     66} 
     67 
     68table.midcom_admin_user_search_results tr.row_selected td.first 
     69{ 
     70} 
     71 
     72table.midcom_admin_user_search_results tr.row_selected td.last 
     73{ 
     74} 
    5675 
    5776form.datamanager2 fieldset label,