aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/demos/functional/datepicker/debug.html2
-rw-r--r--ui/source/ui.datepicker.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/ui/demos/functional/datepicker/debug.html b/ui/demos/functional/datepicker/debug.html
index d78507612..a73c5dc62 100644
--- a/ui/demos/functional/datepicker/debug.html
+++ b/ui/demos/functional/datepicker/debug.html
@@ -1,6 +1,6 @@
<html>
<head>
- <html>Only core files for easy debug</html>
+ <title>Only core files for easy debug</title>
<link rel="stylesheet" href="../../../themes/ui.datepicker.css" type="text/css" media="screen" title="default" charset="utf-8">
</head>
<body>
diff --git a/ui/source/ui.datepicker.js b/ui/source/ui.datepicker.js
index 4676378d8..62199f7bb 100644
--- a/ui/source/ui.datepicker.js
+++ b/ui/source/ui.datepicker.js
@@ -1290,8 +1290,8 @@ $.extend(DatepickerInstance.prototype, {
year = drawYear - 10;
endYear = drawYear + 10;
} else if (years[0].charAt(0) == '+' || years[0].charAt(0) == '-') {
- year = drawYear + parseInt(years[0], 10);
- endYear = drawYear + parseInt(years[1], 10);
+ year = new Date().getFullYear() + parseInt(years[0], 10);
+ endYear = new Date().getFullYear() + parseInt(years[1], 10);
} else {
year = parseInt(years[0], 10);
endYear = parseInt(years[1], 10);