Sha256: d02db4a2047e7b8d17246614fe6d3309d828ead2044fdf5dd6ca29a0c74ba8cd
Contents?: true
Size: 1.96 KB
Versions: 9
Compression:
Stored size: 1.96 KB
Contents
{I" class:ETI"BundledAsset; FI"logical_path; TI"%hot_date_rails/hot_date_rails.js; FI" pathname; TI"~/Users/johnomalley/Rails_Projects/Rails_4.1/hot_date_rails/app/assets/javascripts/hot_date_rails/hot_date_rails.js.coffee; FI"content_type; TI"application/javascript; TI" mtime; Tl+£qTI"length; TiÐI"digest; TI"%0707e0fe2e3c35b906f208f656255bc1; 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"%25df43936b2b3ba15042ed42ea056d33; FI" _version; TI"%134d714864361d96664b8e1779275370; F
Version data entries
9 entries across 7 versions & 1 rubygems