You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by de...@apache.org on 2017/09/17 12:30:15 UTC

[myfaces-trinidad] 31/33: TRINIDAD-2282 In validateLength, a default hintRange message is displayed instead of hintMaximum even when minimum value is not set

This is an automated email from the ASF dual-hosted git repository.

deki pushed a commit to branch 2.0.0.x-branch
in repository https://gitbox.apache.org/repos/asf/myfaces-trinidad.git

commit 022a4b98c996b660bd16bfb36db3b0a761658b8e
Author: Gabrielle Crawford <gc...@apache.org>
AuthorDate: Fri Mar 29 02:37:58 2013 +0000

    TRINIDAD-2282 In validateLength, a default hintRange message is displayed instead of hintMaximum even when minimum value is not set
    
    thanks to anshu
---
 trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js b/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
index cf4f2de..dddfa41 100644
--- a/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
+++ b/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/CoreFormat.js
@@ -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)
     {

-- 
To stop receiving notification emails like this one, please contact
"commits@myfaces.apache.org" <co...@myfaces.apache.org>.