{:uriI"Ñfile:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/form/inputs/_dates.js?type=application/javascript&pipeline=self&id=791dedc81c893a99bc0723db5ee37b8ae114bbf96577a0a6768610e4c7c27857:ET:load_pathI"G/Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts;F: 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"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;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%¬Xövv`ƒwEcüûâªZµž ”?}(À–6†•f¥Ÿ: lengthi”:integrityI"Xni:///sha-256;rFj2dnZgFYN3RWP8--KqWrWeCx2UP30owJY2hpVmpZ8?ct=application/javascript;T:dependencies_digest"%8Ý©Hà ‘&Múº¦U)šÛd§d H9—úyd¾ž:idI"E791dedc81c893a99bc0723db5ee37b8ae114bbf96577a0a6768610e4c7c27857;F: mtimel+ ôW