Only apply year range to date only widgets, it causes times to break

This commit is contained in:
Hadi Nategh 2015-05-12 08:13:24 +00:00
parent cae45464b7
commit 37bc839ea7

View File

@ -291,7 +291,7 @@ String: A string in the user\'s date format, or a relative date. Relative dates
*/ */
set_year_range: function(_value) set_year_range: function(_value)
{ {
if(this.input_date) if(this.input_date && this._type == 'date')
{ {
this.input_date.datepicker('option','yearRange',_value); this.input_date.datepicker('option','yearRange',_value);
} }