Roo/bootstrap/Calendar.js
authorEdward <edward@roojs.com>
Thu, 6 Mar 2014 07:51:00 +0000 (15:51 +0800)
committerEdward <edward@roojs.com>
Thu, 6 Mar 2014 07:51:00 +0000 (15:51 +0800)
Roo/bootstrap/Calendar.js

index bd5a414..6f494a3 100644 (file)
@@ -661,13 +661,17 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
     },
     
     onLoad: function () {
-//        this.calevents = [];
+        this.calevents = [];
         if(this.store.getCount() > 0){
             this.store.data.each(function(d){
-               Roo.log(d); 
+               this.addItem({
+                    start: new Date(),
+                    end : new Date().add(Date.DAY, 2),
+                    title : 'test'
+                });
             });
         }
-//        this.renderEvents();
+        this.renderEvents();
     }
 });