test/dummy/tmp/cache/assets/D20/590/sprockets%2F22948c5cb4a59a4c252888f75cdf387a in adherent-0.0.5 vs test/dummy/tmp/cache/assets/D20/590/sprockets%2F22948c5cb4a59a4c252888f75cdf387a in adherent-0.0.6
- old
+ new
@@ -1,8 +1,8 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1376041008.124084:@value"{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1376204226.94613:@value"J{I"
class:ETI"BundledAsset; FI"logical_path; TI"adherent/application.js; TI"
pathname; TI"T/home/jcl/rails_project/Adherent/app/assets/javascripts/adherent/application.js; FI"content_type; TI"application/javascript; TI"
-mtime; TI"2013-08-09T11:23:56+02:00; TI"length; TiI"digest; TI"%c7df80ad0db9638b82e797e4d1145382; FI"source; TI"/*!
+mtime; TI"2013-08-11T08:56:54+02:00; TI"length; Ti]I"digest; TI"%5375194abcbda22d468183b81d034544; FI"source; TI"]/*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
@@ -14602,18 +14602,30 @@
//
// 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: $(val).attr('data-jcmin'),
- maxDate: $(val).attr('data-jcmax')
+ 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). */
@@ -14662,6 +14674,6 @@
;
-; TI"required_assets_digest; TI"%56941c8d0f2134ca64e12fed6c371e9a; FI"
_version; TI"%6776f581a4329e299531e1d52aa59832; F
+; TI"required_assets_digest; TI"%17930344e53f875b6384d09be7bcad23; FI"
_version; TI"%6776f581a4329e299531e1d52aa59832; F
\ No newline at end of file