Roo/bootstrap/DateField.js
[roojs1] / Roo / bootstrap / DateField.js
index 0a8767a..9c25a53 100644 (file)
@@ -930,6 +930,10 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
     
     validateValue : function(value)
     {
+        if(this.getVisibilityEl().hasClass('hidden')){
+            return true;
+        }
+        
         if(value.length < 1)  {
             if(this.allowBlank){
                 return true;
@@ -974,6 +978,21 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
         
         
         return true;
+    },
+    
+    setVisible : function(visible)
+    {
+        if(!this.getEl()){
+            return;
+        }
+        
+        this.getEl().removeClass('hidden');
+        
+        if(visible){
+            return;
+        }
+        
+        this.getEl().addClass('hidden');
     }
    
 });