Sha256: 9c3f5765b46e60bd4059f944244a881821a6245a01a9869177f0ce13fcb78200

Contents?: true

Size: 1.79 KB

Versions: 5

Compression:

Stored size: 1.79 KB

Contents

{:uriI"file:///Users/ilia/my_projects/sample_filter/lib/assets/javascripts/sample_filter/script.js?type=application/javascript&pipeline=self&id=3a3f0dbcc7b45c6cc1b1ccb78fbb00091b6140b3ef1355ea00445aa46e5c01e2: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,
  });

  $('.datepicker_input').each(function(i, el){
    $(el).data('datepicker').selectDate(parseFilterDate($(el).val()));
  });
})

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(dateArray[3],dateArray[2]-1,dateArray[1],dateArray[4],dateArray[5]);
  } else if(dateArray){
    return new Date(dateArray[3],dateArray[2]-1,dateArray[1]);
  } else{
    return new Date();
  }
}
;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"%ÙC=['?:QIW>o1LB::lengthi:dependencies_digest"%Vd`,)SƧ,kC)Pworn	dE(D*:idI"E3a3f0dbcc7b45c6cc1b1ccb78fbb00091b6140b3ef1355ea00445aa46e5c01e2;F:
mtimel+Y

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sample_filter-0.1.4 spec/dummy/tmp/cache/assets/sprockets/v3.0/Bp/bpDLdGe7G94dYJAyufM-JovBbLWpQzdImEnDOYtHYh8.cache
sample_filter-0.1.3 spec/dummy/tmp/cache/assets/sprockets/v3.0/Bp/bpDLdGe7G94dYJAyufM-JovBbLWpQzdImEnDOYtHYh8.cache
sample_filter-0.1.2 spec/dummy/tmp/cache/assets/sprockets/v3.0/Bp/bpDLdGe7G94dYJAyufM-JovBbLWpQzdImEnDOYtHYh8.cache
sample_filter-0.1.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/Bp/bpDLdGe7G94dYJAyufM-JovBbLWpQzdImEnDOYtHYh8.cache
sample_filter-0.1.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/Bp/bpDLdGe7G94dYJAyufM-JovBbLWpQzdImEnDOYtHYh8.cache