Sha256: f97a3f0acd0dfb2c34e4fe849a58eb74ce70fe698fb53579ad15d1c35797d672
Contents?: true
Size: 1.97 KB
Versions: 12
Compression:
Stored size: 1.97 KB
Contents
{I" class:ETI"BundledAsset; FI"logical_path; TI"%hot_date_rails/hot_date_rails.js; FI" pathname; TI"€/Users/johnomalley/.rvm/gems/ruby-2.1.1/gems/hot_date_rails-1.3.3/app/assets/javascripts/hot_date_rails/hot_date_rails.js.coffee; FI"content_type; TI"application/javascript; TI" mtime; Tl+§Æ$TI"length; TiÐI"digest; TI"%a4f03b19e217eb631d692c2c4677a709; FI"source; TI"Ð(function() { var setDatePickerOptions, setPickerOptions; $(document).on('ready page:load', function() { return $("input.datepicker").each(function(i) { var defOpts; defOpts = { altFormat: "yy-mm-dd", altField: $(this).next(), changeYear: true, changeMonth: true }; return setDatePickerOptions(this, defOpts); }); }); $(document).on('ready page:load', function() { return $("input.datetimepicker").each(function(i) { var defOpts; defOpts = { altField: $(this).next(), altFieldTimeOnly: false, altFormat: "yy-mm-dd", altTimeFormat: "HH:mm" }; return setPickerOptions(this, defOpts); }); }); $(document).on('ready page:load', function() { return $("input.timepicker").each(function(i) { var defOpts; defOpts = { timeOnly: true, altField: $(this).next(), altFieldTimeOnly: false, defaultValue: this.value }; return setPickerOptions(this, defOpts); }); }); setPickerOptions = function(input, defOpts) { var allOpts, userOpts; userOpts = $(input).data(); allOpts = $.extend({}, defOpts, userOpts); return $(input).datetimepicker(allOpts); }; setDatePickerOptions = function(input, defOpts) { var allOpts, userOpts; userOpts = $(input).data(); allOpts = $.extend({}, defOpts, userOpts); return $(input).datepicker(allOpts); }; }).call(this); ; TI"required_assets_digest; TI"%6ec2a028ab0df329fa43ba28da8cf43f; FI" _version; TI"%5ef14a844324cba3e114bd0123f88a5e; F
Version data entries
12 entries across 6 versions & 1 rubygems