vendor/assets/javascripts/uikit/components/datepicker.js in uikit2-rails-0.1.1 vs vendor/assets/javascripts/uikit/components/datepicker.js in uikit2-rails-0.1.2

- old
+ new

@@ -1,6 +1,6 @@ -/*! UIkit 2.22.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ +/*! UIkit 2.23.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ (function(addon) { var component; if (window.UIkit) { @@ -205,10 +205,10 @@ pick: function(initdate) { var offset = this.element.offset(), css = {"left": offset.left, "right":""}; - this.current = initdate ? moment(initdate, this.options.format):moment(); + this.current = isNaN(initdate) ? moment(initdate, this.options.format):moment(); this.initdate = this.current.format("YYYY-MM-DD"); this.update(); if (UI.langdirection == 'right') {