Changeset 33 for trunk/expressoAdmin1_2/js/jscode/groups.js
- Timestamp:
- 06/21/07 08:32:34 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/js/jscode/groups.js
r2 r33 277 277 } 278 278 } 279 280 function use_samba_attrs(value) 281 { 282 document.forms[0].sambadomain.disabled = !value; 283 } 284 285 function get_available_sambadomains(context, type) 286 { 287 if ((type == 'create_group') && (document.getElementById('ea_div_display_samba_options').style.display != 'none')) 288 { 289 var handler_get_available_sambadomains = function(data) 290 { 291 document.forms[0].use_attrs_samba.checked = data.status; 292 use_samba_attrs(data.status); 293 294 if (data.status) 295 { 296 combo_sambadomains = document.getElementById('ea_combo_sambadomains'); 297 for (i=0; i<data.sambaDomains.length; i++) 298 { 299 for (j=0; j<combo_sambadomains.length; j++) 300 { 301 if (combo_sambadomains.options[j].text == data.sambaDomains[i]) 302 { 303 combo_sambadomains.options[j].selected = true; 304 break; 305 } 306 } 307 } 308 309 } 310 } 311 cExecute ('$this.ldap_functions.exist_sambadomains_in_context&context='+context, handler_get_available_sambadomains); 312 } 313 }
Note: See TracChangeset
for help on using the changeset viewer.