Pull datepicker yearRange from defined scope data

This commit is contained in:
Luke Towers 2017-08-05 12:41:22 -06:00 committed by GitHub
parent e41f047722
commit c4e3387752
1 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@
defaults = {
minDate: new Date(scopeData.minDate),
maxDate: new Date(scopeData.maxDate),
yearRange: 10,
yearRange: scopeData.yearRange,
setDefaultDate: '' !== defaultValue ? defaultValue.toDate() : '',
format: self.getDateFormat(),
i18n: self.getLang('datepicker')
@ -397,4 +397,4 @@
}
}
}(window.jQuery);
}(window.jQuery);