diff options
author | Stephane Deschamps <stephane.deschamps@gmail.com> | 2013-09-05 14:37:09 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2013-10-02 17:28:12 +0200 |
commit | b67d1037a8583b11658d1ecfc96e7971b0c7fcee (patch) | |
tree | b9139663d8a80a2515fc5f54e96ec3222a447854 | |
parent | e263ebda99f3d414bae91a4a47e74a37ff93ba9c (diff) | |
download | jquery-ui-b67d1037a8583b11658d1ecfc96e7971b0c7fcee.tar.gz jquery-ui-b67d1037a8583b11658d1ecfc96e7971b0c7fcee.zip |
Day TH's: scope=col. Closes gh-1074
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.
-rw-r--r-- | ui/jquery.ui.datepicker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index b433cb79b..0f0ee7fe2 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -1721,7 +1721,7 @@ $.extend(Datepicker.prototype, { thead = (showWeek ? "<th class='ui-datepicker-week-col'>" + this._get(inst, "weekHeader") + "</th>" : ""); for (dow = 0; dow < 7; dow++) { // days of the week 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>"; } calender += thead + "</tr></thead><tbody>"; |