Roo/bootstrap/Calendar.js
authorEdward <edward@roojs.com>
Thu, 4 Sep 2014 07:37:41 +0000 (15:37 +0800)
committerEdward <edward@roojs.com>
Thu, 4 Sep 2014 07:37:41 +0000 (15:37 +0800)
Roo/bootstrap/Calendar.js

index c840622..7d2ba64 100644 (file)
@@ -708,15 +708,18 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
             var rows = ev.rows;
             if(ev.id != 32 && ev.id != 40){
                 continue;
-            }   
-            var cbox = this.cells.item(this.cells.indexOf(cells[0]));
-
-            if(cells.length < 2 && cbox.rows.length > 3){
-                cbox.more.push(ev);
-                continue;
             }
-
-            cbox.rows.push(ev);
+            for(var i = 0; i < cells.length; i++){
+                
+                var cbox = this.cells.item(this.cells.indexOf(cells[i]));
+                
+                if(cells.length < 2 && cbox.rows.length > 3){
+                    cbox.more.push(ev);
+                    continue;
+                }
+                
+                cbox.rows.push(ev);
+            }
         }
         
         var _this = this;