Skip to content

Instantly share code, notes, and snippets.

@bmoeskau
Created August 12, 2011 18:54
Show Gist options
  • Select an option

  • Save bmoeskau/1142701 to your computer and use it in GitHub Desktop.

Select an option

Save bmoeskau/1142701 to your computer and use it in GitHub Desktop.
(function(fm) {
function f0(out,values,parent,xindex,xcount) {
try { with(values) {
return(weeks)
}} catch(e) {}
}
function f5(out,values,parent,xindex,xcount) {
return values
}
function f8(out,values,parent,xindex,xcount) {
return values
}
return function (out,values,parent,xindex,xcount) {
var c0=values, p0=parent, n0=xcount, i0=xindex;
var c1=f0.call(this,out,values,parent,xindex,xcount), a1=Ext.isArray(c1),p1=(parent=c0)
for (var i1=0,n1=a1?c1.length:(c1?1:0), xcount=n1;i1<n1;){
values=a1?c1[i1]:c1
xindex=++i1
out.push('<div id="')
out.push(String(this.id))
out.push('-wk-')
out.push(String(xindex-1))
out.push('" class="ext-cal-wk-ct" style="top:')
out.push(String(this.getRowTop(xindex, xcount)))
out.push('%; height:')
out.push(String(this.getRowHeight(xcount)))
out.push('%;"><div id="')
out.push(String((values['weekLinkId'] === undefined ? '' : values['weekLinkId'])))
out.push('" class="ext-cal-week-link">')
out.push(String((values['weekNum'] === undefined ? '' : values['weekNum'])))
out.push('</div><table class="ext-cal-bg-tbl" cellpadding="0" cellspacing="0"><tbody><tr>')
var c2=f5.call(this,out,values,parent,xindex,xcount), a2=Ext.isArray(c2),p2=(parent=c1)
for (var i2=0,n2=a2?c2.length:(c2?1:0), xcount=n2;i2<n2;){
values=a2?c2[i2]:c2
xindex=++i2
out.push('<td id="')
out.push(String(this.id))
out.push('-day-')
out.push(String(fm.date(values['date'],"Ymd")))
out.push('" class="')
out.push(String((values['cellCls'] === undefined ? '' : values['cellCls'])))
out.push('">&#160;</td>')
}
parent=p1;values=c1;xcount=n1;xindex=i1
out.push('</tr></tbody></table><table class="ext-cal-evt-tbl" cellpadding="0" cellspacing="0"><tbody><tr>')
var c2=f8.call(this,out,values,parent,xindex,xcount), a2=Ext.isArray(c2),p2=(parent=c1)
for (var i2=0,n2=a2?c2.length:(c2?1:0), xcount=n2;i2<n2;){
values=a2?c2[i2]:c2
xindex=++i2
out.push('<td id="')
out.push(String(this.id))
out.push('-ev-day-')
out.push(String(fm.date(values['date'],"Ymd")))
out.push('" class="')
out.push(String((values['titleCls'] === undefined ? '' : values['titleCls'])))
out.push('"><div>')
out.push(String((values['title'] === undefined ? '' : values['title'])))
out.push('</div></td>')
}
parent=p1;values=c1;xcount=n1;xindex=i1
out.push('</tr></tbody></table></div>')
}
parent=p0;values=c0;xcount=n0;xindex=i0
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment