{:uriI"Ñfile:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/inputs/_dates.js?type=application/javascript&pipeline=self&id=c6ef1a7af90d74947bb84ed3c1a9561ded964b88cd2b77b06a895adab8729859:ET:load_pathI"G/Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts;T: filenameI"a/Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/inputs/_dates.js;T: nameI"fae/form/inputs/_dates;T:logical_pathI"#fae/form/inputs/_dates.self.js;T:content_typeI"application/javascript;T: sourceI"”/* global Fae, datepicker, FCH */ /** * Fae form dates * @namespace form.dates * @memberof form */ Fae.form.dates = { init: function() { this.initDatepicker(); this.initDateRangePicker(); }, /** * Initialize date picker */ initDatepicker: function() { $('.datepicker input:not(.hasDatepicker)').datepicker({ dateFormat: 'M dd, yy', inline: true, showOtherMonths: true, dayNamesMin: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] }); }, /** * Initialize date range picker */ initDateRangePicker: function() { $.dateRangePickerLanguages['custom'] = { 'selected': 'Choosed:', 'days': 'Days', 'apply': 'Close', 'week-1' : 'Mon', 'week-2' : 'Tue', 'week-3' : 'Wed', 'week-4' : 'Thu', 'week-5' : 'Fri', 'week-6' : 'Sat', 'week-7' : 'Sun', 'month-name': ['January','February','March','April','May','June','July','August','September','October','November','December'], 'previous' : 'Previous', 'prev-week' : 'Week', 'prev-month' : 'Month', 'prev-quarter' : 'Quarter', 'prev-year' : 'Year', 'less-than' : 'Date range should longer than %d days', 'more-than' : 'Date range should less than %d days', 'default-more' : 'Please select a date range longer than %d days', 'default-less' : 'Please select a date range less than %d days', 'default-range' : 'Please select a date range between %d and %d days', 'default-default': 'Please select a date' }; // daterangepicker instantiation if (FCH.exists('.daterangepicker')) { $('.daterangepicker').dateRangePicker({ format: 'MMM DD, YYYY', separator : ' to ', showShortcuts: false, language: 'custom', getValue: function() { if ($('.js-start_date').val() && $('.js-end_date').val()) { return $('.js-start_date').val() + ' to ' + $('.js-end_date').val(); } else { return ''; } }, setValue: function(s,s1,s2) { $('.js-start_date').val(s1); $('.js-end_date').val(s2); } }); }; }, }; ;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"ofile-digest:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/inputs/_dates.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%¬Xövv`ƒwEcüûâªZµž ”?}(À–6†•f¥Ÿ: lengthi”:dependencies_digest"%Ùza6¶Õ†¼µýïp‡wÔ~æ˜Ù4m’R"d²ÞÄ•©:idI"Ec6ef1a7af90d74947bb84ed3c1a9561ded964b88cd2b77b06a895adab8729859;F: mtimel+ ôW