Changeset 459 for trunk/jabberit_messenger/js
- Timestamp:
- 09/22/08 17:02:02 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jabberit_messenger/js/ldap.js
r382 r459 39 39 _status.innerHTML = ''; 40 40 _name.previousSibling.style.color = "#000"; 41 _group.previousSibling.style.color = "#000";42 41 43 42 if ( !_jid ) … … 64 63 if ( !(_group.value) ) 65 64 { 66 _group.previousSibling.style.color = "#f00";67 65 _status.innerHTML += '<br/>** Informe um "GRUPO" para o contato.'; 68 66 } … … 77 75 _uid = _jid.substr(0, (_jid.indexOf('@') - 1)); 78 76 77 79 78 _name.parentNode.style.display = 'none'; 80 79 _name.parentNode.nextSibling.style.display = 'none'; … … 86 85 { 87 86 _status.innerHTML = '<br/>Contato adicionado !<br/>'; 87 setTimeout('cleanStatusAddContactIM();',2500); 88 88 }, 89 89 'uid='+_uid+'&name='+_name.value+'&group='+_group.value … … 92 92 _name.value = ''; 93 93 _group.value = ''; 94 94 95 } 95 96 } … … 158 159 return false; 159 160 161 document.getElementById('__span_load_im_group').style.display = 'block'; 160 162 document.getElementById('im_jid').value = m.substr(0, m.indexOf(';')); 161 163 document.getElementById('im_uid').value = m.substr((m.indexOf(';')+1)); 162 164 163 165 var _name = document.getElementById('im_name'); 164 _name.value = m.substr(0, m.indexOf('@')); 165 _name.previousSibling.style.color = "#000"; 166 167 _name.parentNode.style.display = 'block'; 168 _name.parentNode.nextSibling.style.display = 'block'; 169 _name.parentNode.nextSibling.nextSibling.innerHTML = ''; 170 171 var _group = document.getElementById('im_group'); 172 _group.value = ''; 173 _group.focus(); 166 _name.value = document.getElementById(m).innerHTML; 167 _name.previousSibling.style.color = "#000"; 168 169 _name.parentNode.style.display = 'block'; 170 _name.parentNode.nextSibling.style.display = 'block'; 171 _name.parentNode.nextSibling.nextSibling.innerHTML = ''; 172 173 _conn.go('$this.ujabber.getGroupsJabber', 174 function(data) 175 { 176 if( data = data.replace(/(^\s*)|(\s*$)/g,'')) 177 { 178 var _group = document.getElementById('im_group'); 179 var _groupOptions = ''; 180 181 _group.setAttribute('selectBoxOptions', data); 182 if( document.getElementById('selectBox0') == null) 183 editS.create(document.getElementById('im_group')); 184 } 185 document.getElementById('__span_load_im_group').style.display = 'none'; 186 }); 187 188 document.getElementById('im_group').value = ''; 189 document.getElementById('im_group').focus(); 174 190 } 175 191 176 192 var _member = _target.firstChild; 193 177 194 while ( _member ) 178 195 { … … 205 222 } 206 223 )(); 224 225 function cleanStatusAddContactIM() 226 { 227 document.getElementById('im_status_add').innerHTML = ''; 228 }
Note: See TracChangeset
for help on using the changeset viewer.