You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2009/06/09 03:17:22 UTC
svn commit: r782857 -
/myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
Author: matzew
Date: Tue Jun 9 01:17:21 2009
New Revision: 782857
URL: http://svn.apache.org/viewvc?rev=782857&view=rev
Log:
fixed some javascript problem when numeric value is 0, did this "if(foo != null)"
Modified:
myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
Modified: myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js?rev=782857&r1=782856&r2=782857&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js (original)
+++ myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js Tue Jun 9 01:17:21 2009
@@ -1113,7 +1113,7 @@
{
//we have both, max and min, so we only use the range Hint
- if(max && min)
+ if(max != null && min != null)
{
var hints = new Array();
if(messages && messages[rangeHint])
@@ -1172,10 +1172,10 @@
)
{
var hints;
- if(max)
+ if (max != null)
{
hints = new Array();
- if(messages && messages[maxHint])
+ if (messages && messages[maxHint])
{
hints.push(
TrMessageFactory.createCustomMessage(
@@ -1193,13 +1193,13 @@
}
}
- if(min)
+ if (min != null)
{
- if(!hints)
+ if (!hints)
{
hints = new Array();
}
- if(messages && messages[minHint])
+ if (messages && messages[minHint])
{
hints.push(
TrMessageFactory.createCustomMessage(