Roo/bootstrap/Calendar.js
authorEdward <edward@roojs.com>
Thu, 6 Mar 2014 08:03:35 +0000 (16:03 +0800)
committerEdward <edward@roojs.com>
Thu, 6 Mar 2014 08:03:35 +0000 (16:03 +0800)
Roo/bootstrap/Calendar.js

index d7fa471..9c83e62 100644 (file)
@@ -522,7 +522,7 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
     {
         // look for vertical location slot in
         var cells = this.findCells(ev);
-        Roo.log(cells);
+        
         ev.row = this.findBestRow(cells);
         
         // work out the location.
@@ -550,6 +550,7 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
             };
             
         }
+        
         rows.push(crow);
         ev.els = [];
         ev.rows = rows;
@@ -559,6 +560,10 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
             
         }
         
+        if(!crow){
+            return;
+        }
+        
         this.calevents.push(ev);
     },