Fixed datepicker bug and improved vc demo
diff --git a/dev/js/src/datepicker.js b/dev/js/src/datepicker.js
index 6d3086d..59a3ec2 100644
--- a/dev/js/src/datepicker.js
+++ b/dev/js/src/datepicker.js
@@ -35,6 +35,7 @@
// Init datepicker
_init : function () {
+ this._selected = [];
return this;
},
@@ -96,7 +97,7 @@
// Show year
this._showYear = year ? year :
(this._selected['year'] ? this._selected['year'] :
- today.getYear());
+ today.getYear() + 1900);
// Show month
this._showMonth = month ? month :