myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gcrawf...@apache.org
Subject svn commit: r1462382 - /myfaces/trinidad/branches/2.0.0.x-branch/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
Date Fri, 29 Mar 2013 02:37:59 GMT
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)
     {



Mime
View raw message