Roo/bootstrap/Calendar.js
authorEdward <edward@roojs.com>
Wed, 5 Mar 2014 12:43:44 +0000 (20:43 +0800)
committerEdward <edward@roojs.com>
Wed, 5 Mar 2014 12:43:44 +0000 (20:43 +0800)
Roo/bootstrap/Calendar.js

index 417be03..897de1e 100644 (file)
@@ -271,6 +271,16 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
         this.el.select('.fc-button-today',true).on('click', this.showToday, this);
         this.el.select('.fc-button',true).addClassOnOver('fc-state-hover');
         this.cells.addClassOnOver('fc-state-hover');
+        
+        if (!this.store) {
+            return;
+        }
+        
+        this.store = Roo.factory(this.store, Roo.data);
+        
+        Roo.log('after');
+        Roo.log(this.store);
+        
 
     },
     resize : function() {
@@ -656,14 +666,7 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
         
         this.calevents = [];
         
-        if (!this.store) {
-            return;
-        }
-        
-        this.store = Roo.factory(this.store, Roo.data);
         
-        Roo.log('after');
-        Roo.log(this.store);
         
 //        this.renderEvents();
     }