Changeset 2707 for trunk/expressoAdmin1_2/js/jscode
- Timestamp:
- 05/04/10 18:58:04 (14 years ago)
- Location:
- trunk/expressoAdmin1_2/js/jscode
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/js/jscode/expressoadmin.js
r2604 r2707 52 52 } 53 53 } 54 _controller.go( {55 "access" : " $this.ldap_functions.get_associated_domain&context=" + context,54 ExpressoLivre.go( { 55 "access" : "expressoAdmin1_2.ldap_functions.get_associated_domain&context=" + escape( context ), 56 56 "handler" : function( data ) 57 57 { -
trunk/expressoAdmin1_2/js/jscode/institutional_accounts.js
r2352 r2707 60 60 } 61 61 } 62 cExecute ('$this.ldap_functions.get_available_users&context='+context, handler_get_users); 62 ExpressoLivre.go( { 63 "access" : 'expressoAdmin1_2.ldap_functions.get_available_users&context=' + escape(context), 64 "handler" : handler_get_users 65 } ); 63 66 } 64 67 … … 114 117 115 118 //Inclui usuario comecando com a pesquisa 116 for(i = 0; i < select_available_users_clone.length; i++){117 if ( RegExp_name.test(select_available_users_clone[i].text) || (select_available_users_clone[i].value == -1) )118 {119 sel = select_available_users_tmp.options;120 option = new Option(select_available_users_clone[i].text,select_available_users_clone[i].value);121 122 if (select_available_users_clone[i].value == -1)123 option.disabled = true;124 125 sel[sel.length] = option;126 }127 }119 //for(i = 0; i < select_available_users_clone.length; i++){ 120 // if ( RegExp_name.test(select_available_users_clone[i].text) || (select_available_users_clone[i].value == -1) ) 121 // { 122 // sel = select_available_users_tmp.options; 123 // option = new Option(select_available_users_clone[i].text,select_available_users_clone[i].value); 124 // 125 // if (select_available_users_clone[i].value == -1) 126 // option.disabled = true; 127 // 128 // sel[sel.length] = option; 129 // } 130 // } 128 131 oWait.innerHTML = ' '; 129 132 } … … 202 205 var handler_get_institutional_accounts = function(data) 203 206 { 207 data = data.JSON( ); 204 208 if (data.status == 'true') 205 209 { … … 210 214 write_msg(data.msg, 'error'); 211 215 } 212 cExecute ('$this.ldap_functions.get_institutional_accounts&input='+input, handler_get_institutional_accounts); 216 ExpressoLivre.go( { 217 "access" : 'expressoAdmin1_2.ldap_functions.get_institutional_accounts&input='+input, 218 "handler" : handler_get_institutional_accounts 219 } ); 213 220 } 214 221 -
trunk/expressoAdmin1_2/js/jscode/shared_accounts.js
r2352 r2707 62 62 var handler_get_users = function(data) 63 63 { 64 data = data.JSON( ); 64 65 select_available_users = Element('ea_select_available_users'); 65 66 … … 82 83 } 83 84 } 84 cExecute ('$this.ldap_functions.get_available_users2&context='+context, handler_get_users); 85 ExpressoLivre.go( { 86 "access" : 'expressoAdmin1_2.ldap_functions.get_available_users2&context='+context, 87 "handler" : handler_get_users 88 } ); 85 89 } 86 90 … … 239 243 var handler_get_shared_accounts = function(data) 240 244 { 245 data = data.JSON( ); 241 246 if (data.status == 'true') 242 247 { … … 247 252 write_msg(data.msg, 'error'); 248 253 } 249 cExecute ('$this.ldap_functions.get_shared_accounts&input='+input, handler_get_shared_accounts); 254 ExpressoLivre.go( { 255 "access" : 'expressoAdmin1_2.ldap_functions.get_shared_accounts&input='+input, 256 "handler" : handler_get_shared_accounts 257 } ); 250 258 } 251 259 … … 254 262 var handle_edit_shared_account = function(data) 255 263 { 264 data = data.JSON( ); 256 265 if (data.status == 'true') 257 266 { … … 300 309 sinc_combos_org(data.user_context); 301 310 sharemailbox.ownersAcl = new Array(); 302 if( data.owners != "undefined" && data.owners_acl != "undefined" ){311 if( data.owners && data.owners != "undefined" && data.owners_acl != "undefined" ){ 303 312 for (i=0; i<data.owners.length; i++){ 304 313 sharemailbox.ownersAcl[ data.owners[i] ] = data.owners_acl[i]; … … 309 318 write_msg(data.msg, 'error'); 310 319 } 311 cExecute ('$this.shared_accounts.get_data&uid='+uid, handle_edit_shared_account); 320 ExpressoLivre.go( { 321 "access" : 'expressoAdmin1_2.shared_accounts.get_data&uid='+uid, 322 "handler" : handle_edit_shared_account 323 } ); 312 324 } 313 325 … … 383 395 var handler_get_available_users = function(data) 384 396 { 397 data = data.JSON( ); 398 385 399 select_available_users = document.getElementById('em_select_available_users'); 386 400 … … 403 417 } 404 418 } 405 cExecute ("$this.ldap_functions.get_available_users2&context="+context, handler_get_available_users); 419 ExpressoLivre.go( { 420 "access" : 'expressoAdmin1_2.ldap_functions.get_available_users2&context='+context, 421 "handler" : handler_get_available_users 422 } ); 406 423 } 407 424
Note: See TracChangeset
for help on using the changeset viewer.