summaryrefslogtreecommitdiff
path: root/plugins/jqueryui/js/jquery-ui-1.10.4.custom.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jqueryui/js/jquery-ui-1.10.4.custom.min.js')
-rwxr-xr-xplugins/jqueryui/js/jquery-ui-1.10.4.custom.min.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/jqueryui/js/jquery-ui-1.10.4.custom.min.js b/plugins/jqueryui/js/jquery-ui-1.10.4.custom.min.js
index d7c9e5982..1fc30a166 100755
--- a/plugins/jqueryui/js/jquery-ui-1.10.4.custom.min.js
+++ b/plugins/jqueryui/js/jquery-ui-1.10.4.custom.min.js
@@ -89,13 +89,14 @@ $.extend($.datepicker, {
.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;
@@ -108,7 +109,7 @@ $.extend($.datepicker, {
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: