Changeset 605
 Timestamp:
 08/01/07 01:05:34 (7 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

FCKeditor/trunk/fckeditor.asp
r417 r605 139 139 140 140 IsCompatible = FCKeditor_IsCompatibleBrowser() 141 142 End Function143 144 ' By Agrotic145 ' On ASP, when converting string to numbers, the number decimal separator is localized146 ' 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" ) Then150 ToNumericFormat = Replace( numberStr, ",", ".")151 Else152 ToNumericFormat = Replace( numberStr, ".", ",")153 End If154 141 155 142 End Function … … 209 196 210 197 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) ) ) 212 199 FCKeditor_IsCompatibleBrowser = ( iVersion >= 5.5 ) 213 200 ElseIf InStr(sAgent, "Gecko/") > 0 Then … … 219 206 220 207 End 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. 213 Private 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 221 End Function 222 221 223 %>
Note: See TracChangeset
for help on using the changeset viewer.