Roo/bootstrap/DateField.js
authoredward <edward@roojs.com>
Tue, 8 Aug 2017 10:50:56 +0000 (18:50 +0800)
committeredward <edward@roojs.com>
Tue, 8 Aug 2017 10:50:56 +0000 (18:50 +0800)
Roo/bootstrap/DateField.js

index 36e6e01..9429015 100644 (file)
@@ -926,7 +926,18 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
     remove: function() 
     {
         this.picker().remove();
-    }
+    },
+    
+    validate : function()
+    {
+        if(this.disabled || this.validateValue(this.getRawValue())){
+            this.markValid();
+            return true;
+        }
+        
+        this.markInvalid();
+        return false;
+    },
    
 });