Changeset 2988 for trunk/jmessenger/js/trophyim.js
- Timestamp:
- 07/01/10 15:16:19 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jmessenger/js/trophyim.js
r2984 r2988 1043 1043 { 1044 1044 var divItenContact = null; 1045 var spanShow = null;1046 1045 1047 1046 if( ( divItenContact = document.getElementById('itenContact_' + jidTo ))) 1048 1047 { 1049 loadscript.removeElement( document.getElementById('itenContactNotification_' + jidTo ) );1050 1051 spanShow = document.getElementById('span_show_itenContact_' + jidTo )1052 1053 spanShow.parentNode.removeChild(spanShow);1054 1055 loadscript.removeGroup( divItenContact.parentNode );1056 1057 divItenContact.parentNode.removeChild(divItenContact);1058 1059 1048 // Remove Contact 1060 1049 var _id = TrophyIM.connection.getUniqueId(); … … 1063 1052 delContact = delContact.c('item').attrs({jid: jidTo, subscription:'remove'}).tree(); 1064 1053 1065 TrophyIM.connection.send( delContact ); 1054 TrophyIM.connection.send( delContact ); 1055 1056 loadscript.removeElement( document.getElementById('itenContactNotification_' + jidTo ) ); 1057 1058 var spanShow = document.getElementById('span_show_itenContact_' + jidTo ) 1059 spanShow.parentNode.removeChild(spanShow); 1060 1061 loadscript.removeGroup( divItenContact.parentNode ); 1062 1063 divItenContact.parentNode.removeChild(divItenContact); 1066 1064 } 1067 1065 }, … … 1263 1261 statusColor = "orange"; 1264 1262 break; 1265 1266 default:1267 paramsContact.status = " ( SEM PARAMETRO DEFINIDO" + objContact.contact.subscription + " ) ";1268 1263 } 1269 1264 … … 1372 1367 1373 1368 itensJid.style.background = "url('"+path_jabberit+"templates/default/images/" + presence + ".gif') no-repeat center left"; 1374 1375 1369 } 1376 1370 … … 1702 1696 this.addContact = function(jid, subscription, name, groups ) 1703 1697 { 1704 if( subscription === "remove" || subscription == "remove")1698 if( subscription.indexOf("remove") >= 0 ) 1705 1699 { 1706 1700 this.removeContact(jid); … … 1866 1860 var jid_lower = barejid.toLowerCase(); 1867 1861 1868 if( show != 'unavailable')1862 if( show != 'unavailable' && show != 'error' ) 1869 1863 { 1870 1864 if (!this.roster[jid_lower]) … … 1888 1882 this.roster[jid_lower]['presence'][resource] = presence; 1889 1883 } 1890 else if (this.roster[jid_lower] && this.roster[jid_lower]['presence'] && this.roster[jid_lower]['presence'][resource]) 1891 { 1892 delete this.roster[jid_lower]['presence'][resource];1884 else 1885 { 1886 delete this.roster[jid_lower]; 1893 1887 } 1894 1888
Note: See TracChangeset
for help on using the changeset viewer.