Changeset 1403

Show
Ignore:
Timestamp:
2008-01-24 17:13:57 (7 months ago)
Author:
fredck
Message:

Fixed #1641 : Simplified the IE7/IE6 detection code.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fckbrowserinfo.js

    r1398 r1403  
    2727{ 
    2828        IsIE            : /*@cc_on!@*/false, 
    29         IsIE7           : /*@cc_on!@*/false && ( parseFloat( s.match( /msie ([\d|\.]+)/ )[1] ) >= 7 ), 
    30         IsIE6           : /*@cc_on!@*/false && ( parseFloat( s.match( /msie ([\d|\.]+)/ )[1] ) >= 6 ), 
     29        IsIE7           : /*@cc_on!@*/false && ( parseInt( s.match( /msie (\d+)/ )[1] ) >= 7 ), 
     30        IsIE6           : /*@cc_on!@*/false && ( parseInt( s.match( /msie (\d+)/ )[1] ) >= 6 ), 
    3131        IsGecko         : s.Contains('gecko/'), 
    3232        IsSafari        : s.Contains(' applewebkit/'),          // Read "IsWebKit"