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

index 5bc14b4..c840622 100644 (file)
@@ -708,20 +708,15 @@ 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;
             }
-            for(var i = 0; i < cells.length; i++){
-                if(i != 0){
-                    continue;
-                }
-                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);
-            }
+
+            cbox.rows.push(ev);
         }
         
         var _this = this;