You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by so...@apache.org on 2012/07/18 02:11:14 UTC
svn commit: r1362725 -
/myfaces/trinidad/trunk/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
Author: sobryan
Date: Wed Jul 18 00:11:14 2012
New Revision: 1362725
URL: http://svn.apache.org/viewvc?rev=1362725&view=rev
Log:
TRINIDAD-2282
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=1362725&r1=1362724&r2=1362725&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 Wed Jul 18 00:11:14 2012
@@ -1215,7 +1215,8 @@ function _returnRangeHints(
{
//we have both, max and min, so we only use the range Hint
- if(max != null && min != null)
+ //when min is zero it is the default value so we do not use range Hint
+ if(max != null && min != null && min != 0)
{
var hints = new Array();
if(messages && messages[rangeHint])
@@ -1295,7 +1296,8 @@ function _returnHints(
}
}
- if (min != null)
+ //when min is 0, its the default value so we use hint Max in this case
+ if (min != null && min != 0)
{
if (!hints)
{