/**
* @class Roo.grid.Calendar
- * @extends Roo.util.Grid
+ * @extends Roo.grid.Grid
* This class extends the Grid to provide a calendar widget
* <br><br>Usage:<pre><code>
var grid = new Roo.grid.Calendar("my-container-id", {
clearEvent : function(ev)
{
if (ev.els) {
- Roo.each(e.els, function(el) {
+ Roo.each(ev.els, function(el) {
el.un('mouseenter' ,this.onEventEnter, this);
el.un('mouseleave' ,this.onEventLeave, this);
el.remove();
},this);
- e.els = [];
+ ev.els = [];
}
- }
+ },
renderEvent : function(ev,ctr) {
ctr = this.view.el.select('.fc-event-container',true).first();
}
- if (ev.els) {
- this.clearEvent(ev);
+
+ this.clearEvent(ev);
//code
- }
+
ev.els = [];
cls += ' fc-event-end';
}
- Roo.log(ev.data);
+ //Roo.log(ev.data);
// how many rows should it span..
var cg = this.eventTmpl.append(ctr,Roo.apply({
fccls : cls
this.cells.each(function(c) {
- Roo.log(c.select('.fc-day-content div',true).first());
+ //Roo.log(c.select('.fc-day-content div',true).first());
c.select('.fc-day-content div',true).first().setHeight(Math.max(34, (c.rows || 1) * 20));
});