{:uriI"file:///Users/ilia/my_projects/sample_filter/lib/assets/javascripts/sample_filter/script.js?type=application/javascript&pipeline=self&id=f9eeb2418c1c2523d6979e02c77be6f741855fc97432a780c65be447d9255843:ET:load_pathI"A/Users/ilia/my_projects/sample_filter/lib/assets/javascripts;T: filenameI"Y/Users/ilia/my_projects/sample_filter/lib/assets/javascripts/sample_filter/script.js;T: nameI"sample_filter/script;T:logical_pathI"!sample_filter/script.self.js;T:content_typeI"application/javascript;T: sourceI"$(document).ready(function() { $('.datepicker_input').datepicker({ timepicker: true, onShow(dp, animationCompleted){ if (!animationCompleted) { $('.datepicker_input').removeClass('active'); $(dp.el).addClass('active');; } } }); $('.datepicker_input').each(function(i, el){ $(el).data('datepicker').selectDate(parseFilterDate($(el).val())); }); $('.sample-filter__clear-form').on('click', function(e) { e.preventDefault(); document.location.href = $(this).parents('form').attr('action'); }); }) function parseFilterDate(date_string) { var dateTimeReg = /(\d{2}).(\d{2}).(\d{4}) (\d{2}):(\d{2})/; var dateReg = /(\d{2}).(\d{2}).(\d{4})/; var dateTimeArray = dateTimeReg.exec(date_string); var dateArray = dateReg.exec(date_string); if(dateTimeArray){ return new Date(dateTimeArray[3],dateTimeArray[2]-1,dateTimeArray[1],dateTimeArray[4],dateTimeArray[5]); } else if(dateArray){ return new Date(dateArray[3],dateArray[2]-1,dateArray[1]); } } ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"gfile-digest:///Users/ilia/my_projects/sample_filter/lib/assets/javascripts/sample_filter/script.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%eG^yB[ Ot|DX'e: lengthi:dependencies_digest"%}ݝx*5_+O{G/$3S:idI"Ef9eeb2418c1c2523d6979e02c77be6f741855fc97432a780c65be447d9255843;F: mtimel+Y