|
var CalendarWidth = 767;
var theCalTable = document.getElementById("CalViewTable1");
if (theCalTable != null)
{
theCalTable.rows[0].cells[0].getElementsByTagName("IMG")[0].width = CalendarWidth;
var theCalendar = theCalTable.rows[2].cells[0].firstChild ;
if (theCalendar.nodeType!=1) {theCalendar = GetFirstChildElement(theCalTable.rows[2].cells[0]);} // for Firefox
var RowCount=theCalendar.rows.length;
i = 1;
NOWs = 0;
for (i=1;i= 0) NOWs += 1 ;
theCalendar.rows[i].className = "Week" + NOWs;
}
try {
var thisWeek = $(".ms-cal-topday-today")[0].parentNode.className;
$(".ms-cal-gempty>tbody>tr:not([class="+thisWeek+"])").hide();
$(".ms-cal-gempty>tbody>tr").eq(0).show();
}
catch(err) {}
var i=0;
do {
var lastchild = theCalendar.rows[i].lastChild ;
if (lastchild.nodeType!=1) {theCalendar.rows[i].removeChild(lastchild); continue;} // for Firefox
if ((lastchild.className == "ms-cal-week") || (lastchild.className == "ms-cal-weekB")) {i+=1;continue;}
var j = lastchild.rowSpan;
if (lastchild.colSpan == 1) {theCalendar.rows[i].removeChild(lastchild);}
else {lastchild.colSpan = lastchild.colSpan-1;}
i += j;
} while (i < RowCount)
var i=0;
do {
var lastchild = theCalendar.rows[i].lastChild ;
if (lastchild.nodeType!=1) {theCalendar.rows[i].removeChild(lastchild); continue;} // for Firefox
if ((lastchild.className == "ms-cal-week") || (lastchild.className == "ms-cal-weekB")) {i+=1;continue;}
var j = lastchild.rowSpan;
if (lastchild.colSpan == 1) {theCalendar.rows[i].removeChild(lastchild);}
else {lastchild.colSpan = lastchild.colSpan-1;}
i += j;
} while (i < RowCount)
}
|
|
|
|