Changeset 2998
- Timestamp:
- 07/06/10 11:16:10 (14 years ago)
- Location:
- trunk/jmessenger/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jmessenger/js/jscode/loadIM.js
r2996 r2998 887 887 888 888 TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribe'); 889 //TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribed');890 889 break; 891 890 … … 898 897 case 'not-in-roster': 899 898 900 /*setTimeout(function() 901 { 902 var _add = ""; 903 904 if( ( _add = confirm("Deseja adicionar o usuario!")) ) 905 { 906 addUser.add( jidTo ); 907 } 908 909 },100);*/ 910 911 addUser.add( jidTo ); 899 TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribe'); 900 addUser.add( jidTo ); 912 901 913 902 break; -
trunk/jmessenger/js/trophyim.js
r2994 r2998 595 595 } 596 596 597 /*if( getAttribute('jid') == 'teste9@im.pr.gov.br' || getAttribute('jid') == 'alexandrecorreia@im.pr.gov.br' ) 598 { 599 alert( "JID : " + getAttribute('jid') + "\n" + 600 "ASK : " + getAttribute('ask') + "\n" + 601 "SUBSCRIPTION : " + getAttribute('subscription') ); 602 }*/ 603 604 597 605 if( getAttribute('ask') && getAttribute('ask').toString() === "subscribe" ) 598 606 { … … 604 612 if( getAttribute('subscription').toString() === "remove" ) 605 613 { 606 TrophyIM.rosterObj.removeContact( getAttribute('jid'));614 TrophyIM.rosterObj.removeContact( getAttribute('jid').toString() ); 607 615 } 608 616 } … … 611 619 if( getAttribute('subscription').toString() === "remove" ) 612 620 { 613 TrophyIM.rosterObj.removeContact( getAttribute('jid'));621 TrophyIM.rosterObj.removeContact( getAttribute('jid').toString() ); 614 622 } 615 623 else … … 1888 1896 var jid_lower = barejid.toLowerCase(); 1889 1897 1898 /** 1899 * COMENTADO PARA TESTES 1900 * 1890 1901 if( show != 'unavailable' && show != 'error' ) 1891 { 1902 if( show != 'unavailable' ) 1903 { 1904 */ 1892 1905 if (!this.roster[jid_lower]) 1893 1906 { … … 1908 1921 } 1909 1922 1910 this.roster[jid_lower]['presence'][resource] = presence; 1923 this.roster[jid_lower]['presence'][resource] = presence; 1924 1925 /** 1926 * COMENTADO PARA TESTES 1927 * 1911 1928 } 1912 1929 else … … 1916 1933 1917 1934 this.addChange(jid_lower); 1935 */ 1918 1936 } 1919 1937
Note: See TracChangeset
for help on using the changeset viewer.