Changeset 2799
- Timestamp:
- 05/17/10 15:24:31 (14 years ago)
- Location:
- sandbox/jabberit_messenger/trophy_expresso
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/jabberit_messenger/trophy_expresso/js/jscode/loadIM.js
r2791 r2799 344 344 } 345 345 346 function getStatusMessage()347 {348 return _statusMessage;349 }350 351 346 function getShowContactsOffline() 352 347 { … … 363 358 return true; 364 359 } 365 360 361 function getSmiles( String ) 362 { 363 String = String.replace( /:\)/g , " <img src='"+path_jabberit+"templates/default/images/smiles/1.gif'/> "); 364 String = String.replace( /:-D/g , " <img src='"+path_jabberit+"templates/default/images/smiles/2.gif'/> "); 365 String = String.replace( /;-\)/g , " <img src='"+path_jabberit+"templates/default/images/smiles/3.gif'/> "); 366 String = String.replace( /=-O/g , " <img src='"+path_jabberit+"templates/default/images/smiles/4.gif'/> "); 367 String = String.replace( /:P/g , " <img src='"+path_jabberit+"templates/default/images/smiles/5.gif'/> "); 368 String = String.replace( /8-\)/g , " <img src='"+path_jabberit+"templates/default/images/smiles/6.gif'/> "); 369 String = String.replace( /\>:o/g , " <img src='"+path_jabberit+"templates/default/images/smiles/7.gif'/> "); 370 String = String.replace( /:-\$/g , " <img src='"+path_jabberit+"templates/default/images/smiles/8.gif'/> "); 371 String = String.replace( /:s|:-X/g , " <img src='"+path_jabberit+"templates/default/images/smiles/9.gif'/> "); 372 String = String.replace( /:-\(/g , " <img src='"+path_jabberit+"templates/default/images/smiles/10.gif'/> "); 373 String = String.replace( /:\'\(/g , " <img src='"+path_jabberit+"templates/default/images/smiles/11.gif'/> "); 374 String = String.replace( /:\|/g , " <img src='"+path_jabberit+"templates/default/images/smiles/12.gif'/> "); 375 String = String.replace( /O:-\)/g , " <img src='"+path_jabberit+"templates/default/images/smiles/13.gif'/> "); 376 String = String.replace( /\*\*@#%/g , " <img src='"+path_jabberit+"templates/default/images/smiles/14.gif'/> "); 377 String = String.replace( /\(I\)/g , " <img src='"+path_jabberit+"templates/default/images/smiles/15.gif'/> "); 378 379 return String; 380 } 381 382 function getStatusMessage() 383 { 384 return _statusMessage; 385 } 386 366 387 function getUserCurrent() 367 388 { … … 1215 1236 loadIM.prototype.getIsIE = getIsIE; 1216 1237 loadIM.prototype.getPhotoUser = getPhotoUser; 1238 loadIM.prototype.getSmiles = getSmiles; 1217 1239 loadIM.prototype.getStatusMessage = getStatusMessage; 1218 1240 loadIM.prototype.getShowContactsOffline = getShowContactsOffline; -
sandbox/jabberit_messenger/trophy_expresso/js/trophyim.js
r2791 r2799 693 693 694 694 _message.innerHTML = _message.innerHTML.replace(/^\s+|\s+$|^\n|\n$/g, ""); 695 695 696 // Get Smiles 697 _message.innerHTML = loadscript.getSmiles( _message.innerHTML ); 698 696 699 if ( _message.hasChildNodes() ) 697 700 { … … 706 709 } 707 710 } 708 // Message without body are "content message", this mean state is not active711 // Message without body are "content message", this mean state is not active 709 712 else 710 713 { … … 892 895 addMessage : function(chatBox, jid, msg) 893 896 { 897 // Get Smiles 898 msg.msg = loadscript.getSmiles( msg.msg ); 899 894 900 var messageDiv = document.createElement("div"); 895 901 messageDiv.style.margin = "3px 0px 1em 3px";
Note: See TracChangeset
for help on using the changeset viewer.