/** * datepickers.js * * Copyright (c) 2010, 2011 "kento" Karim Rahimpur www.itthinx.com * * This code is released under the GNU General Public License. * See COPYRIGHT.txt and LICENSE.txt. * * This code is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * This header and all notices must be kept intact. * * @author Karim Rahimpur * @package affiliates * @since affiliates 1.0.0 */ jQuery(document).ready(function(){ jQuery('.datefield').not('.hasDatePicker').datepicker( { dateFormat:'yy-mm-dd', firstDay: 1 } ); jQuery('.dobfield').not('.hasDatePicker').datepicker( { dateFormat:'yy-mm-dd', changeYear: true, changeMonth: true, yearRange: 'c-100:c+0', firstDay: 1 } ); });