Changeset 2599 for sandbox/jabberit_messenger
- Timestamp:
- 04/20/10 11:08:51 (14 years ago)
- Location:
- sandbox/jabberit_messenger/trophy_expresso/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/jabberit_messenger/trophy_expresso/js/loadIM.js
r2584 r2599 7 7 var selectEditable = null; 8 8 var showhidden = null; 9 var timeoutId = null 9 10 var userCurrent = null; 10 11 var Xtools = null; … … 320 321 if( pFiles[i].indexOf(".css") > -1 ) 321 322 document.getElementsByTagName("head")[0].appendChild(loadStyleSheet(pFiles[i])); 323 } 324 } 325 326 function notificationNewMessage() 327 { 328 var oldTitle = document.title; 329 var newTitle = " ## NOVA MENSAGEM ## "; 330 var idWindow = arguments[1]; 331 332 if( timeoutId == null) 333 { 334 timeoutId = setInterval(function() 335 { 336 document.title = document.title == newTitle ? ' ' : newTitle; 337 338 }, 1000); 339 340 configEvents( window, 'onclick', function() 341 { 342 clearInterval(timeoutId); 343 document.title = oldTitle; 344 timeoutId = null; 345 }); 322 346 } 323 347 } … … 653 677 } 654 678 679 loadIM.prototype.addIcon = addIcon; 655 680 loadIM.prototype.actionButton = actionButton; 656 681 loadIM.prototype.addContact = addContact; … … 663 688 loadIM.prototype.keyPressSearch = keyPressSearch; 664 689 loadIM.prototype.loginPage = loginPage; 690 loadIM.prototype.notification = notificationNewMessage; 665 691 loadIM.prototype.parse = parse; 666 692 loadIM.prototype.searchUser = searchUser -
sandbox/jabberit_messenger/trophy_expresso/js/trophyim.js
r2584 r2599 132 132 TrophyIM = { 133 133 134 posWindow : { left : 400, top : 100 }, 135 134 136 statusConn : { connected : false }, 135 137 … … 637 639 width : 387, 638 640 height : 365, 639 top : 100,640 left : 400,641 top : (TrophyIM.posWindow.top = TrophyIM.posWindow.top + 15 ), 642 left : (TrophyIM.posWindow.left = TrophyIM.posWindow.left + 10 ), 641 643 draggable : true, 642 644 visible : "display", … … 650 652 _winBuild(winChatBox); 651 653 654 // Notification New Message 655 loadIM.notification(); 656 652 657 // Photo User; 653 658 loadIM.getPhotoUser(barejid);
Note: See TracChangeset
for help on using the changeset viewer.