incubator-adffaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r511931 - /incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
Date Mon, 26 Feb 2007 18:00:03 GMT
Author: matzew
Date: Mon Feb 26 10:00:01 2007
New Revision: 511931

URL: http://svn.apache.org/viewvc?view=rev&rev=511931
Log:
ADFFACES-389 - NumberConverter should support 0X20 spaces as well as 0XA0

Modified:
    incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js

Modified: incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
URL: http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js?view=diff&rev=511931&r1=511930&r2=511931
==============================================================================
--- incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
(original)
+++ incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
Mon Feb 26 10:00:01 2007
@@ -933,6 +933,11 @@
       throw new TrConverterException(facesMessage);
     }
 
+    if (grouping == "\xa0"){
+      var normalSpace = new RegExp("\\ " , "g");
+      numberString = numberString.replace(normalSpace, "\xa0");
+    }
+    
     // Remove the thousands separator - which Javascript doesn't want to see
     var thousands = new RegExp("\\" + grouping, "g");
     numberString = numberString.replace(thousands, "");



Mime
View raw message