Ignore:
Timestamp:
03/12/09 11:32:55 (15 years ago)
Author:
niltonneto
Message:

Fechamento das ocorrências referentes à versão 0.7.11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jabberit_messenger/templates/default/setup.js

    r562 r697  
    239239        } 
    240240 
     241        function setOrganizationsForGroups() 
     242        { 
     243                var elementSel = document.getElementById('organizations_ldap_jabberit'); 
     244                var Organization = ""; 
     245                 
     246                for(var i = 0; i < elementSel.options.length; i++) 
     247                { 
     248                        if( elementSel.options[i].selected == true && elementSel.options[i].value != "-1" ) 
     249                                Organization = elementSel.options[i].value; 
     250                } 
     251                 
     252                if( Organization ) 
     253                { 
     254                 
     255                        var group = document.getElementById('nameGroup').value; 
     256                        var gidNumber = document.getElementById('gidNumber').value; 
     257         
     258                         
     259                        _conn.go("$this.db_im.setOuGroupsLocked", 
     260                                         function(data) 
     261                                         { 
     262                                                if ( data ) 
     263                                                { 
     264                                                        var _params = { 
     265                                                                'lang1': jabberitGetLang('Organization'), 
     266                                                                'lang2': jabberitGetLang('Delete') 
     267                                                        }; 
     268                                                         
     269                                                        var Table = document.getElementById('tableOrganizationsEnabledGroupsJabberit'); 
     270                                                        Table.parentNode.innerHTML = _xtools.parse( data, 'tableOrganizationsEnabledGroupsJabberit.xsl', _params); 
     271                                                } 
     272                                         },      
     273                                         "group="+group+"&gidnumber="+gidNumber+"&ou="+Organization); 
     274                } 
     275        } 
     276 
     277        function removeOrgGroupsLocked() 
     278        { 
     279                if( arguments.length > 0 ) 
     280                { 
     281                        var element = document.getElementById(arguments[0]); 
     282                        var org = arguments[0]; 
     283                        var group = document.getElementById('nameGroup').value; 
     284                        var gidNumber = document.getElementById('gidNumber').value; 
     285                         
     286                         
     287                        _conn.go("$this.db_im.removeOuGroupsLocked", 
     288                                        function(data) 
     289                                        { 
     290                                                if( data ) 
     291                                                        element.parentNode.removeChild(element); 
     292                                        }, 
     293                                        "group="+group+"&gidnumber="+gidNumber+"&ou="+org); 
     294                } 
     295        } 
     296 
     297 
    241298        function removeOrgLdapAttributes() 
    242299        { 
     
    278335        constructScript.prototype.removePartExternal = removeParticipantsExternal; 
    279336        constructScript.prototype.removeOrg = removeOrgLdapAttributes; 
     337        constructScript.prototype.removeOrgGroupsLocked = removeOrgGroupsLocked; 
     338        constructScript.prototype.setOrgFgroups = setOrganizationsForGroups; 
     339        constructScript.prototype.setPartExternal = setParticipantsExternal;     
    280340        constructScript.prototype.sendf = sendf; 
     341         
    281342        window.constructScript = new constructScript; 
    282343} 
Note: See TracChangeset for help on using the changeset viewer.