Changeset 605


Ignore:
Timestamp:
08/01/2007 01:05:34 AM (8 years ago)
Author:
alfonsoml
Message:

The changes to the asp integration file were wrong, why did they work?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/fckeditor.asp

    r417 r605  
    139139
    140140                IsCompatible = FCKeditor_IsCompatibleBrowser()
    141 
    142         End Function
    143 
    144         ' By Agrotic
    145         ' On ASP, when converting string to numbers, the number decimal separator is localized
    146         ' so 5.5 will not work on systems were the separator is "," and vice versa.
    147         Private Function ToNumericFormat( numberStr )
    148 
    149                 If IsNumeric( "5.5" ) Then
    150                         ToNumericFormat = Replace( numberStr, ",", ".")
    151                 Else
    152                         ToNumericFormat = Replace( numberStr, ".", ",")
    153                 End If
    154141
    155142        End Function
     
    209196
    210197        If InStr(sAgent, "MSIE") > 0 AND InStr(sAgent, "mac") <= 0  AND InStr(sAgent, "Opera") <= 0 Then
    211                 iVersion = CInt( ToNumericFormat( Mid(sAgent, InStr(sAgent, "MSIE") + 5, 3) ) )
     198                iVersion = CInt( FCKeditor_ToNumericFormat( Mid(sAgent, InStr(sAgent, "MSIE") + 5, 3) ) )
    212199                FCKeditor_IsCompatibleBrowser = ( iVersion >= 5.5 )
    213200        ElseIf InStr(sAgent, "Gecko/") > 0 Then
     
    219206
    220207End Function
     208
     209
     210' By Agrotic
     211' On ASP, when converting string to numbers, the number decimal separator is localized
     212' so 5.5 will not work on systems were the separator is "," and vice versa.
     213Private Function FCKeditor_ToNumericFormat( numberStr )
     214
     215        If IsNumeric( "5.5" ) Then
     216                FCKeditor_ToNumericFormat = Replace( numberStr, ",", ".")
     217        Else
     218                FCKeditor_ToNumericFormat = Replace( numberStr, ".", ",")
     219        End If
     220
     221End Function
     222
    221223%>
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy