You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by gc...@apache.org on 2013/03/29 03:37:59 UTC
svn commit: r1462382 -
/myfaces/trinidad/branches/2.0.0.x-branch/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
Author: gcrawford
Date: Fri Mar 29 02:37:58 2013
New Revision: 1462382
URL: http://svn.apache.org/r1462382
Log:
TRINIDAD-2282 In validateLength, a default hintRange message is displayed instead of hintMaximum even when minimum value is not set
thanks to anshu
Modified:
myfaces/trinidad/branches/2.0.0.x-branch/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
Modified: myfaces/trinidad/branches/2.0.0.x-branch/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/2.0.0.x-branch/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js?rev=1462382&r1=1462381&r2=1462382&view=diff
==============================================================================
--- myfaces/trinidad/branches/2.0.0.x-branch/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js (original)
+++ myfaces/trinidad/branches/2.0.0.x-branch/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js Fri Mar 29 02:37:58 2013
@@ -1200,7 +1200,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])
@@ -1280,7 +1281,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)
{