Changeset 2437 for sandbox/jabberit_messenger/trophy_expresso/js/loadIM.js
- Timestamp:
- 04/06/10 18:13:32 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/jabberit_messenger/trophy_expresso/js/loadIM.js
r2421 r2437 4 4 var path = ""; 5 5 var addUser = null; 6 var conn = null 6 var conn = null; 7 var selectEditable = null; 7 8 var showhidden = null; 9 var userCurrent = null; 8 10 var Xtools = null; 9 var userCurrent = null;10 11 var zIndex = 9001; 11 12 … … 42 43 } 43 44 44 function addContact s()45 function addContact() 45 46 { 46 47 if( arguments.length > 0 ) … … 145 146 146 147 var _options = [ 147 ['Adicionar Contato', 'loadIM.addContact s();' ],148 ['Adicionar Contato', 'loadIM.addContact();' ], 148 149 ['Ajuda', 'alert("2")' ], 149 150 ['Preferências', 'alert("3")'], … … 309 310 310 311 var _options = [ 311 ['Autorizar', 'TrophyIM.setAutorization(\''+jid+'\')' 312 ['Remover', ' Remover : ' + jid],312 ['Autorizar', 'TrophyIM.setAutorization(\''+jid+'\')'], 313 ['Remover', 'loadIM.removeContact(\''+jid+'\')'], 313 314 ['Renomear', 'Renomear : ' + jid], 314 315 ['Trocar grupo', 'Trocar grupo : ' + jid], … … 332 333 showhidden.action('onmouseover', 'onmouseout', _optionsItens); 333 334 335 element.parentNode.onclick = function(){ showhidden.hiddenObject(false); }; 334 336 element.parentNode.onmouseout = function(){ showhidden.hiddenObject(false); }; 335 337 element.parentNode.onmouseover = function(){ showhidden.hiddenObject(true); }; … … 346 348 if( arguments.length === 3 ) 347 349 return Xtools.parse(Xtools.xml(arguments[0]), arguments[1], arguments[2] ); 350 } 351 352 function removeContact(jid) 353 { 354 TrophyIM.removeContact(jid); 348 355 } 349 356 … … 385 392 } 386 393 394 function setSelectEditable(element) 395 { 396 if( document.getElementById('selectBox0') == null ) 397 selectEditable.create(element); 398 } 399 387 400 function setPresence() 388 401 { … … 458 471 path_jabberit + 'js/trophyim.js', 459 472 path_jabberit + 'js/AddUser.js', 473 path_jabberit + 'js/SelectEditable.js', 460 474 path_jabberit + 'templates/default/css/button.css', 461 475 path_jabberit + 'templates/default/css/common.css', 476 path_jabberit + 'templates/default/css/selectEditableStyle.css', 462 477 path_jabberit + 'templates/default/css/' + theme_jabberit 463 478 ]; … … 484 499 addUser = new addUserIM(Xtools, conn); 485 500 501 502 // Object SelectEditable 503 if( selectEditable == null ) 504 selectEditable = new SelectEditable(); 505 486 506 // Add Jabber in StatusBar; 487 507 addIcon(); … … 492 512 493 513 loadIM.prototype.actionButton = actionButton; 494 loadIM.prototype.addContact s = addContacts;514 loadIM.prototype.addContact = addContact; 495 515 loadIM.prototype.configEvents = configEvents; 496 516 loadIM.prototype.getUserCurrent = getUserCurrent; … … 501 521 loadIM.prototype.loginPage = loginPage; 502 522 loadIM.prototype.parse = parse; 523 loadIM.prototype.searchUser = searchUser 503 524 loadIM.prototype.setPresence = setPresence; 504 loadIM.prototype.searchUser = searchUser505 525 loadIM.prototype.setStatusJabber = setStatusJabber; 526 loadIM.prototype.setSelectEditable = setSelectEditable; 527 loadIM.prototype.removeContact = removeContact; 506 528 loadIM.prototype.rosterDiv = rosterDiv; 507 529
Note: See TracChangeset
for help on using the changeset viewer.