Skip to content

Commit

Permalink
Day TH's: scope=col. Closes gh-1074
Browse files Browse the repository at this point in the history
A TH must feature a way to know which span of TD's it applies to, and in simple tables such as date tables, this can be achieved through the use of the scope attribute.
  • Loading branch information
Stephane Deschamps authored and jzaefferer committed Oct 2, 2013
1 parent e263ebd commit b67d103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.datepicker.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1721,7 +1721,7 @@ $.extend(Datepicker.prototype, {
thead = (showWeek ? "<th class='ui-datepicker-week-col'>" + this._get(inst, "weekHeader") + "</th>" : ""); thead = (showWeek ? "<th class='ui-datepicker-week-col'>" + this._get(inst, "weekHeader") + "</th>" : "");
for (dow = 0; dow < 7; dow++) { // days of the week for (dow = 0; dow < 7; dow++) { // days of the week
day = (dow + firstDay) % 7; day = (dow + firstDay) % 7;
thead += "<th" + ((dow + firstDay + 6) % 7 >= 5 ? " class='ui-datepicker-week-end'" : "") + ">" + thead += "<th scope='col'" + ((dow + firstDay + 6) % 7 >= 5 ? " class='ui-datepicker-week-end'" : "") + ">" +
"<span title='" + dayNames[day] + "'>" + dayNamesMin[day] + "</span></th>"; "<span title='" + dayNames[day] + "'>" + dayNamesMin[day] + "</span></th>";
} }
calender += thead + "</tr></thead><tbody>"; calender += thead + "</tr></thead><tbody>";
Expand Down

0 comments on commit b67d103

Please sign in to comment.