Changeset 3167 for branches/2.2/workflow/js/jscode/participants.js
- Timestamp:
- 08/17/10 16:17:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/workflow/js/jscode/participants.js
r795 r3167 1 1 var participantsClone = null; 2 var chkOnlyVisibleAccountsClone = null; 2 3 var searchTimer = null; 3 4 var globalSearchEnter = true; … … 23 24 var params = { 24 25 organization: $F('organization'), 26 onlyVisibleAccounts: $F('onlyVisibleAccounts'), 25 27 entities: $F('entities'), 26 28 id: $F('id'), … … 34 36 var params = { 35 37 context: $F('sector'), 38 onlyVisibleAccounts: $F('onlyVisibleAccounts'), 36 39 entities: $F('entities'), 37 40 id: $F('id'), … … 46 49 setSelectValue($('participants'), data); 47 50 participantsClone = data; 51 if($('onlyVisibleAccounts')) 52 chkOnlyVisibleAccountsClone = $('onlyVisibleAccounts').checked; 48 53 } 49 54 … … 63 68 var reg = new RegExp("<option[^>]*>[^<]*" + searchString + "[^<]*<\/option>", "gi"); 64 69 setSelectValue($('participants'), participantsClone.match(reg)); 70 if($('onlyVisibleAccounts')) 71 $('onlyVisibleAccounts').checked = chkOnlyVisibleAccountsClone; 65 72 66 73 var participants = $('participants'); … … 126 133 127 134 obj = $('participants'); 128 if (obj) 135 if (obj){ 129 136 participantsClone = obj.innerHTML; 137 if($('onlyVisibleAccounts')) 138 chkOnlyVisibleAccountsClone = $('onlyVisibleAccounts').checked; 139 } 130 140 131 141 obj = $('exitLink'); … … 140 150 if (obj) 141 151 obj.focus(); 152 153 obj = $('onlyVisibleAccounts'); 154 if (obj) 155 obj.onclick = checkOnlyVisibleAccounts; 142 156 143 157 obj = $('useGlobalSearch'); … … 149 163 }); 150 164 }; 165 166 function checkOnlyVisibleAccounts() 167 { 168 if(!$('useGlobalSearch').checked) 169 getParticipants(); 170 else 171 toggleFullSearch(); 172 } 151 173 152 174 function participantsFilterName(name) … … 330 352 $('globalSearchWarnings').innerHTML = ''; 331 353 var params = { 354 onlyVisibleAccounts: $F('onlyVisibleAccounts'), 332 355 searchTerm: $F('search'), 333 356 entities: $F('entities'), … … 341 364 { 342 365 newWidth = 500; 343 newHeight = 290;366 newHeight = 315; 344 367 newScreenX = screen.width - newWidth; 345 368 newScreenY = 0;
Note: See TracChangeset
for help on using the changeset viewer.