Merge pull request #105 from fazleelahhee/master

beforeShowDay option added. Iterate over each day before rendering calen...
This commit is contained in:
Valeriy 2014-04-30 08:22:03 +06:00
commit c505f52fc7

View File

@ -888,6 +888,11 @@
classes.push('xdsoft_weekend');
}
if(options.beforeShowDay && typeof options.beforeShowDay == 'function')
{
classes.push(options.beforeShowDay(start))
}
table+='<td data-date="'+d+'" data-month="'+m+'" data-year="'+y+'"'+' class="xdsoft_date xdsoft_day_of_week'+start.getDay()+' '+ classes.join(' ')+'">'+
'<div>'+d+'</div>'+
'</td>';