summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-07-09 11:18:13 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-07-09 11:18:13 +0200
commit5a28385e73afbf799ba83059e5a1b88bdd674b5c (patch)
tree4d8797afac7c3c4405ee5eb1032bd1291436d4aa
parent7e7e451b66a30d2798c3194330bdf42cd74561fe (diff)
Fix error when activeCell is not defined
-rwxr-xr-xplugins/jqueryui/js/jquery-ui-1.10.4.custom.min.js2
-rw-r--r--plugins/jqueryui/js/jquery-ui-accessible-datepicker.js2
2 files changed, 2 insertions, 2 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 1fc30a166..ea4edecb3 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
@@ -208,7 +208,7 @@ $.extend($.datepicker, {
.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');
diff --git a/plugins/jqueryui/js/jquery-ui-accessible-datepicker.js b/plugins/jqueryui/js/jquery-ui-accessible-datepicker.js
index 287c8f576..1c79e13bd 100644
--- a/plugins/jqueryui/js/jquery-ui-accessible-datepicker.js
+++ b/plugins/jqueryui/js/jquery-ui-accessible-datepicker.js
@@ -193,7 +193,7 @@ $.extend($.datepicker, {
.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');