Sha256: 2a0ec92eb663c2fcf9c99a5dcaa37f365f4a6d0da905f7bb9c000c77b5f611bf

Contents?: true

Size: 1.88 KB

Versions: 5

Compression:

Stored size: 1.88 KB

Contents

{:uriI"Éfile:///Users/ilia/my_projects/sample_filter/lib/assets/javascripts/sample_filter/script.js?type=application/javascript&pipeline=self&id=663539d552301f8772bbec7ee585893e4f8b1ceb8470ae5c2ee8f039e95d5d9d: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) {
        console.log($(dp));
      }
    }
  });

  $('.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(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"%¶qSµøñ¼š æ5
‹ÕêáÞ,j²B¿äÁœŠ):lengthi%:dependencies_digest"%òû 
€QòxäÍs°q&»à;F\LÏòšÀßò:idI"E663539d552301f8772bbec7ee585893e4f8b1ceb8470ae5c2ee8f039e95d5d9d;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/HR/hRQUE_ZHAgHGmfL1HdCpQcyEnshd__2udJaPSpXfCgw.cache
sample_filter-0.1.3 spec/dummy/tmp/cache/assets/sprockets/v3.0/HR/hRQUE_ZHAgHGmfL1HdCpQcyEnshd__2udJaPSpXfCgw.cache
sample_filter-0.1.2 spec/dummy/tmp/cache/assets/sprockets/v3.0/HR/hRQUE_ZHAgHGmfL1HdCpQcyEnshd__2udJaPSpXfCgw.cache
sample_filter-0.1.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/HR/hRQUE_ZHAgHGmfL1HdCpQcyEnshd__2udJaPSpXfCgw.cache
sample_filter-0.1.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/HR/hRQUE_ZHAgHGmfL1HdCpQcyEnshd__2udJaPSpXfCgw.cache