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

index acb9140..381cae3 100644 (file)
@@ -641,6 +641,12 @@ Roo.extend(Roo.bootstrap.Calendar, Roo.bootstrap.Component,  {
         ev.els = [];
         ev.rows = rows;
         ev.cells = cells;
+        
+        if((typeof(cells[0].events) == 'undefined')){
+            cells[0].events = [];
+        }
+        
+        cells[0].events.push(ev);
 //        ev.rendered = false;
 //        for (var i = 0; i < cells.length;i++) {
 //            cells[i].rows = Math.max(cells[i].rows || 0 , ev.row + 1 );