Sha256: 7d995e3a1ffe5c9dc7403d05941a1dc01b0e79e492c9834d4f10fc43b8f8258f

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=43ed88991240685698679c55cb991f479cd5c52995151a96d1ff7bc3bbf98b28: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"%…‹)B¯”¨Î+¯!úwxÿ<&kUÏi¹x×u_ÜùÈæ:lengthi":dependencies_digest"%]ŒêOª4*
صÖùþÒ›§8ûæR+Î\e
…¡Ng:idI"E43ed88991240685698679c55cb991f479cd5c52995151a96d1ff7bc3bbf98b28;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/rh/RhL4iJMewCVo_f4F6qA6oks5H3TjL9t5DGab3qEtmEg.cache
sample_filter-0.1.3 spec/dummy/tmp/cache/assets/sprockets/v3.0/rh/RhL4iJMewCVo_f4F6qA6oks5H3TjL9t5DGab3qEtmEg.cache
sample_filter-0.1.2 spec/dummy/tmp/cache/assets/sprockets/v3.0/rh/RhL4iJMewCVo_f4F6qA6oks5H3TjL9t5DGab3qEtmEg.cache
sample_filter-0.1.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/rh/RhL4iJMewCVo_f4F6qA6oks5H3TjL9t5DGab3qEtmEg.cache
sample_filter-0.1.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/rh/RhL4iJMewCVo_f4F6qA6oks5H3TjL9t5DGab3qEtmEg.cache