examples/bootstrap/calendar.js
authorEdward <edward@roojs.com>
Thu, 6 Mar 2014 08:21:58 +0000 (16:21 +0800)
committerEdward <edward@roojs.com>
Thu, 6 Mar 2014 08:21:58 +0000 (16:21 +0800)
examples/bootstrap/calendar.js

index 9fd2921..f1f1196 100644 (file)
@@ -64,9 +64,9 @@ Roo.example.calendar = new Roo.XComponent({
                                                 Roo.log('beforeload');
                                                 Roo.log(_this);
                                                 o.params = o.params || {};
-                                                var d = new Date().format('Y-m-d');
+                                                var d = new Date().format('Y-m');
                                                 if(_this.cal){
-                                                    d = typeof(_this.cal.activeDate) == 'string' ? _this.cal.activeDate : _this.cal.activeDate.format("Y-m-d");
+                                                    d = typeof(_this.cal.activeDate) == 'string' ? _this.cal.activeDate : _this.cal.activeDate.format("Y-m");
                                                 }
                                                 o.params._activeDate = d
                                             }