Roo/grid/Calendar.js
authorAlan Knowles <alan@roojs.com>
Wed, 9 Apr 2014 11:07:36 +0000 (19:07 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 9 Apr 2014 11:07:36 +0000 (19:07 +0800)
Roo/grid/Calendar.js

index 6c62a2c..4526b52 100644 (file)
@@ -866,8 +866,14 @@ Roo.extend(Roo.grid.Calendar, Roo.grid.Grid, {
         this.calevents = [];
          
         if(this.eventStore.getCount() > 0){
+            
+            var i =0;
+            
             this.eventStore.data.each(function(d){
-                
+                if (i>0) {
+                    return;
+                }
+                i++;
                 
                 // FIXME..
                 var add = Roo.apply({}, d.data);
@@ -886,7 +892,7 @@ Roo.extend(Roo.grid.Calendar, Roo.grid.Grid, {
                 add.id = add.id || d.id;
                 add.title = add.title || '??';
                 this.addItem(add);
-                return true;
+                
             
                 // other than the 'required' coluns, we should just pass the data from the store.