Roo/form/DateField.js
authorAlan Knowles <alan@roojs.com>
Wed, 20 Apr 2016 09:49:13 +0000 (17:49 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Apr 2016 09:49:13 +0000 (17:49 +0800)
Roo/form/DateField.js

index 61e4935..237151a 100644 (file)
@@ -33,8 +33,12 @@ Roo.form.DateField = function(config){
     });
     
     
-    if(typeof this.minValue == "string") this.minValue = this.parseDate(this.minValue);
-    if(typeof this.maxValue == "string") this.maxValue = this.parseDate(this.maxValue);
+    if(typeof this.minValue == "string") {
+        this.minValue = this.parseDate(this.minValue);
+    }
+    if(typeof this.maxValue == "string") {
+        this.maxValue = this.parseDate(this.maxValue);
+    }
     this.ddMatch = null;
     if(this.disabledDates){
         var dd = this.disabledDates;