Changeset 98


Ignore:
Timestamp:
Feb 15, 2009, 1:14:25 PM (16 years ago)
Author:
maron
Message:

Oprava zaškrtávání všech v stahování

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/download.php

    r95 r98  
    285285       
    286286        echo ('<script type="text/javascript">
    287         function CheckAll(check) {
    288                 if (check == true)      ListUser.CheckedAll.checked = ListUser.CheckedAll.checked? false:true;
     287        function CheckAll(myForm,check) {
     288                if (check == true)      myForm.CheckedAll.checked = myForm.CheckedAll.checked? false:true;
    289289                ');
    290290    foreach($UsersOrder as $UserId)
    291         echo ('ListUser.user_'.$UserId.'.checked = ListUser.CheckedAll.checked? true:false;
     291        echo ('myForm.user_'.$UserId.'.checked = myForm.CheckedAll.checked? true:false;
    292292        ');
    293         echo ('} </script><span onClick="CheckAll(false)">'.CheckBox('CheckedAll',False).'</span><span onClick="CheckAll(true)"> zatrhnout vše</span>');
     293        echo ('} </script><span onClick="CheckAll(document.ListUser,false)">'.CheckBox('CheckedAll',False).'</span><span onClick="CheckAll(document.ListUser,true)"> zatrhnout vše</span>');
    294294       
    295295       
Note: See TracChangeset for help on using the changeset viewer.