o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1377412327.9108958: @value"ă {I" class:ETI"ProcessedAsset;FI"logical_path;TI"adherent/date_picker.js;FI" pathname;TI"T/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/date_picker.js;FI"content_type;TI"application/javascript;TI" mtime;TI"2013-08-19T18:22:20+02:00;TI" length;Ti˛I" digest;TI"%45fb502c7259e216c851aa7047817461;FI" source;TI"˛/* * To change this template, choose Tools | Templates * and open the template in the editor. */ // fonction utilisĂ©e pour afficher un date picker pour chaque champ de class // .input_date. Ces champs imput_date sont crĂ©Ă©s facilement par une extension de simple_form_form // // Date min et // date max sont transmis par cette fonction sous forme d'attributs data-jcmin et data-jcmax jQuery(function () { jQuery.each($('.input_date_picker'), function (index, val) { var input_month_year = false; var date_min = $(val).attr('data-jcmin'); var date_max = $(val).attr('data-jcmax'); var year_min = date_min.slice(-4); var year_max = date_max.slice(-4); if ($(val).attr('data-with-month-year') === 'avec') { input_month_year = true; } $(val).datepicker( { dateFormat: 'dd/mm/yy', minDate: date_min, maxDate: date_max, changeMonth: input_month_year, changeYear: input_month_year, yearRange: year_min+":"+year_max } ); }); }); /* French initialisation for the jQuery UI date picker plugin. */ /* Written by Keith Wood (kbwood{at}iinet.com.au) and StĂ©phane Nahmani (sholby@sholby.net). */ jQuery(function ($) { $.datepicker.regional.fr = { closeText: 'Fermer', prevText: '<PrĂ©c', nextText: 'Suiv>', currentText: 'Courant', monthNames: ['Janvier', 'FĂ©vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'AoĂ»t', 'Septembre', 'Octobre', 'Novembre', 'DĂ©cembre'], monthNamesShort: ['Jan', 'FĂ©v', 'Mar', 'Avr', 'Mai', 'Jun', 'Jul', 'AoĂ»', 'Sep', 'Oct', 'Nov', 'DĂ©c'], dayNames: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'], dayNamesShort: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'], dayNamesMin: ['Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa'], weekHeader: 'Sm', dateFormat: 'dd/mm/yy', firstDay: 1, isRTL: false, showMonthAfterYear: false, yearSuffix: '' }; $.datepicker.setDefaults($.datepicker.regional.fr); }); ;TI"dependency_digest;TI"%c927fc531ba777dfc13676e14431799f;FI"required_paths;T[I"T/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/date_picker.js;FI"dependency_paths;T[{I" path;TI"T/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/date_picker.js;FI" mtime;TI"2013-08-19T18:22:20+02:00;TI" digest;TI"%45fb502c7259e216c851aa7047817461;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F