Roo/bootstrap/DateField.js
authorAlan Knowles <alan@roojs.com>
Wed, 20 Apr 2016 10:01:02 +0000 (18:01 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Apr 2016 10:01:02 +0000 (18:01 +0800)
Roo/bootstrap/DateField.js

index 1cc24cf..66ff88f 100644 (file)
@@ -863,7 +863,9 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
     
     moveMonth: function(date, dir)
     {
-        if (!dir) return date;
+        if (!dir) {
+            return date;
+        }
         var new_date = new Date(date.valueOf()),
         day = new_date.getUTCDate(),
         month = new_date.getUTCMonth(),