| | |
| | | .attr('aria-labelledby', inst.id + '-dp-title'); |
| | | } |
| | | else { |
| | | inst.dpDiv.attr('id', inst.id + '-dp-widget') |
| | | var widgetId = inst.dpDiv.attr('id') || inst.id + '-dp-widget'; |
| | | inst.dpDiv.attr('id', widgetId) |
| | | .attr('aria-hidden', 'true') |
| | | .attr('aria-labelledby', inst.id + '-dp-title'); |
| | | |
| | | $(inst.input).attr('aria-haspopup', 'true') |
| | | .attr('aria-expanded', 'false') |
| | | .attr('aria-owns', inst.id + '-dp-widget'); |
| | | .attr('aria-owns', widgetId); |
| | | } |
| | | |
| | | return inst; |
| | |
| | | var that = this; |
| | | |
| | | // register additional keyboard events to control date selection with cursor keys |
| | | $(target).bind('keyup', function(event) { |
| | | $(target).unbind('keyup.datepicker-extended').bind('keyup.datepicker-extended', function(event) { |
| | | var inc = 1; |
| | | switch (event.keyCode) { |
| | | case 109: |
| | |
| | | .attr('tabindex', inst.inline ? '0' : '-1') |
| | | .attr('role', 'grid') |
| | | .attr('aria-readonly', 'true') |
| | | .attr('aria-activedescendant', activeCell.attr('id') || '') |
| | | .attr('aria-activedescendant', activeCell ? activeCell.attr('id') : '') |
| | | .find('td').attr('role', 'gridcell').attr('aria-selected', 'false') |
| | | .find('a').attr('tabindex', '-1'); |
| | | |