Permalink
Browse files

More IE9 fixes from Hironobu Koura

  • Loading branch information...
1 parent a10904d commit 3cb9f1a0c6ea2c4f9ac5aa3876bdfdf3b9e1f5c7 @sebdeckers sebdeckers committed Feb 27, 2011
Showing with 134 additions and 134 deletions.
  1. +50 −50 Client/js/chat-container.js
  2. +5 −5 Client/js/chat-messages.js
  3. +79 −79 Client/js/conference-container.js
Oops, something went wrong.
@@ -48,8 +48,8 @@ function onHistory ( Messages )
for ( var i = 0; i < Messages.length; ++i )
{
var Message = Messages[i];
- var Direction = Message.From == external.globals( 'cfg' )( 'username' ) + '@' + external.globals( 'cfg' )( 'server' ) ? 'send' : 'recv';
- var SenderName = Direction == 'send' ? external.globals( 'cfg' )( 'nick' ) : SessionTracker.Name;
+ var Direction = Message.From == external.globals( 'cfg' ).Item( 'username' ) + '@' + external.globals( 'cfg' ).Item( 'server' ) ? 'send' : 'recv';
+ var SenderName = Direction == 'send' ? external.globals( 'cfg' ).Item( 'nick' ) : SessionTracker.Name;
var MessageTime = Message.Time.getHours() + ':' + ( Message.Time.getMinutes() < 10 ? '0' : '' ) + Message.Time.getMinutes();
/* Insert date
@@ -103,8 +103,8 @@ function onHistory ( Messages )
*/
function onMessage ( Message )
{
- var Direction = Message.FromAddress.ShortAddress() == external.globals( 'cfg' )( 'username' ) + '@' + external.globals( 'cfg' )( 'server' ) ? 'send' : 'recv';
- var SenderName = SessionTracker.Occupants ? Message.FromAddress.Resource : ( Direction == 'send' ? external.globals( 'cfg' )( 'nick' ) : SessionTracker.Name );
+ var Direction = Message.FromAddress.ShortAddress() == external.globals( 'cfg' ).Item( 'username' ) + '@' + external.globals( 'cfg' ).Item( 'server' ) ? 'send' : 'recv';
+ var SenderName = SessionTracker.Occupants ? Message.FromAddress.Resource : ( Direction == 'send' ? external.globals( 'cfg' ).Item( 'nick' ) : SessionTracker.Name );
var MessageTime = Message.Time.getHours() + ':' + ( Message.Time.getMinutes() < 10 ? '0' : '' ) + Message.Time.getMinutes();
/* Insert date
@@ -178,7 +178,7 @@ if ( SessionTracker.Occupants )
else
{
if ( Direction == 'send' )
- SenderAvatar = external.globals( 'cfg' )( 'avatar' );
+ SenderAvatar = external.globals( 'cfg' ).Item( 'avatar' );
else
SenderAvatar = SessionTracker.Avatar;
}
Oops, something went wrong.

0 comments on commit 3cb9f1a

Please sign in to comment.