Changeset 2607 for sandbox/jabberit_messenger/trophy_expresso/js/loadIM.js
- Timestamp:
- 04/20/10 16:20:09 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/jabberit_messenger/trophy_expresso/js/loadIM.js
r2599 r2607 465 465 var paramListContact = 466 466 { 467 'idUser' : getUserCurrent().jid,467 'idUser' : Base64.decode(getUserCurrent().jid), 468 468 'full_name' : (( fullName.length < 25 ) ? fullName : ( fullName.substring( 0, 25) + "...")), 469 469 'path_jabberit' : path_jabberit, … … 490 490 491 491 // Photo User 492 getPhotoUser( getUserCurrent().jid);492 getPhotoUser(Base64.decode(getUserCurrent().jid)); 493 493 } 494 494 … … 515 515 case 'from': 516 516 517 TrophyIM.setAutorization( jidTo, this.getUserCurrent().jid, 'subscribe');517 TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribe'); 518 518 break; 519 519 520 520 case 'none' : 521 521 522 TrophyIM.setAutorization( jidTo, this.getUserCurrent().jid, 'subscribe');523 TrophyIM.setAutorization( jidTo, this.getUserCurrent().jid, 'subscribed');522 TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribe'); 523 TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribed'); 524 524 525 525 break; … … 542 542 case 'to' : 543 543 544 TrophyIM.setAutorization( jidTo, this.getUserCurrent().jid, 'subscribed');544 TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribed'); 545 545 546 546 case 'subscribe' : 547 547 548 TrophyIM.setAutorization( jidTo, this.getUserCurrent().jid, 'subscribe');548 TrophyIM.setAutorization( jidTo, Base64.decode(this.getUserCurrent().jid), 'subscribe'); 549 549 550 550 break; … … 615 615 } 616 616 } 617 618 function setUserCurrent( _jid, _password )617 618 function teste_meu(_jid, _password ) 619 619 { 620 620 userCurrent = 621 621 { 622 'jid' : _jid, 623 'password' : _password 624 } 622 'jid' : _jid.substring(11, _jid.length), 623 'password' : _password.substring(11, _password.length) 624 } 625 } 626 627 function setUserCurrent() 628 { 629 conn.go('p.ff.data_0', 630 function(_User) 631 { 632 var _user = _User; 633 634 conn.go('p.ff.data_1', 635 function(_pass) 636 { 637 teste_meu( _user, _pass ); 638 }); 639 }); 625 640 } 626 641 … … 647 662 648 663 loadScripts(files); 649 650 // User & Password Jabber;651 setUserCurrent( arguments[1], arguments[2]);652 664 653 665 setTimeout(function() … … 695 707 loadIM.prototype.setStatusJabber = setStatusJabber; 696 708 loadIM.prototype.setSelectEditable = setSelectEditable; 709 loadIM.prototype.setUserCurrent = setUserCurrent; 697 710 loadIM.prototype.removeContact = removeContact; 698 711 loadIM.prototype.removeElement = removeElement;
Note: See TracChangeset
for help on using the changeset viewer.