Changeset 3060 for sandbox/workflow/trunk/js
- Timestamp:
- 07/15/10 17:30:07 (14 years ago)
- Location:
- sandbox/workflow/trunk/js
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/trunk/js/htmlarea/plugins/UploadImage/popups/ImageEditor/Transform.php
r795 r3060 130 130 131 131 $classname = "Image_Transform_Driver_{$driver}"; 132 $obj = &new $classname;132 $obj = new $classname; 133 133 return $obj; 134 134 } -
sandbox/workflow/trunk/js/jscode/participants.js
r795 r3060 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; -
sandbox/workflow/trunk/js/jscode/wf_file_upload.js
r795 r3060 149 149 }; 150 150 151 152 151 153 // Set row value 152 154 new_row.innerHTML = element.value + ' '; … … 160 162 }; 161 163 164 this.removeFile = function (me, nome){ 165 me.parentNode.parentNode.removeChild(me.parentNode); 166 hd = document.getElementById("hd_remover_anexos"); 167 hd.value += nome+"; "; 168 } 169 162 170 }; -
sandbox/workflow/trunk/js/jscode/wf_select_ldap_users.js
r795 r3060 9 9 * @param String opt_name Atributo que será atribuído ao name (innerHTML) das options da combo, por padrão é o 'cn' 10 10 */ 11 function search_ldap_users_by_cn(cn, target, opt_id, opt_name, handleExpiredSessions) 12 { 11 function search_ldap_users_by_cn(cn, target, opt_id, opt_name, handleExpiredSessions, opt_complement) 12 { 13 // o parâmetro opt_complement foi acrescentado posteriormente a esta função, devido alguns métodos não utilizá-lo é 14 // necessário fazer o tratamento do mesmo caso não seja passado. 15 if(opt_complement == undefined) 16 opt_complement = ''; 17 13 18 /* Método que trata o retorno da chamada Ajax. Atribui os valores retornados à combobox */ 14 19 function result_search_ldap_users_by_cn(data) … … 35 40 var container = document.getElementById(data["target"]); 36 41 container.innerHTML = ""; 37 if(data['values'].length > 1){42 if(data['values'].length >= 1){ 38 43 container.disabled = true; 39 44 fill_combo_employee(data["target"], data["values"]); … … 44 49 } 45 50 } 51 52 return false; 46 53 } 47 54 48 55 var url = '$this.bo_utils.search_ldap_users_by_cn'; 49 var param = "cn=" + cn + "&target=" + target + "&id=" + opt_id + "&name=" + opt_name ;56 var param = "cn=" + cn + "&target=" + target + "&id=" + opt_id + "&name=" + opt_name + "&complement=" + opt_complement; 50 57 51 58 document.getElementById(target + "_img").show();
Note: See TracChangeset
for help on using the changeset viewer.