Optimalisation of calendar links.
This commit is contained in:
@@ -248,13 +248,13 @@ function initCalendar() {
|
||||
|
||||
//heading table
|
||||
str += '<table class="calendar"><tr><th width="50%">';
|
||||
str += '<a href="#" onclick="month--; initCalendar();">«</a> ';
|
||||
str += '<a href="javascript:month--; initCalendar();">«</a> ';
|
||||
str += month_names[month];
|
||||
str += ' <a href="#" onclick="month++; initCalendar();">»</a>';
|
||||
str += ' <a href="javascript:month++; initCalendar();">»</a>';
|
||||
str += '</th><th width="50%">';
|
||||
str += '<a href="#" onclick="year--; initCalendar();">«</a> ';
|
||||
str += '<a href="javascript:year--; initCalendar();">«</a> ';
|
||||
str += year;
|
||||
str += ' <a href="#" onclick="year++; initCalendar();">»</a>';
|
||||
str += ' <a href="javascript:year++; initCalendar();">»</a>';
|
||||
str += '</th></tr></table>';
|
||||
|
||||
str += '<table class="calendar"><tr>';
|
||||
@@ -291,7 +291,7 @@ function initCalendar() {
|
||||
} else {
|
||||
style = '';
|
||||
}
|
||||
str += "<td" + style + "><a href='#' onclick='returnDate(\"" + actVal + "\");'>" + i + "</a></td>"
|
||||
str += "<td" + style + "><a href=\"javascript:returnDate('" + actVal + "');\">" + i + "</a></td>"
|
||||
dayInWeek++;
|
||||
}
|
||||
for (i = dayInWeek; i < 7; i++) {
|
||||
|
Reference in New Issue
Block a user