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

index 6a5a5f0..c4cc0cb 100644 (file)
@@ -656,30 +656,14 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
         this.fireEvent('eventleave', this, el);
     },
     
-    getEvents: function (d) {
-        
-        this.resize();
-        this.cells = this.el.select('.fc-day',true);
-        this.textNodes = this.el.query('.fc-day-number');
-        this.cells.addClassOnOver('fc-state-hover');
-        
-        Roo.log('fire load');
-        this.store.load();
-        
-        this.calevents = [];
-        
-        
-        
-//        this.renderEvents();
-    },
-    
     onLoad: function () {
-        
+        this.calevents = [];
         if(this.store.getCount() > 0){
             this.store.data.each(function(d){
                Roo.log(d); 
             });
         }
+        this.renderEvents();
     }
 });